Skip to content

fix(api): remove early return in resize sandbox job success handler#4430

Open
brunogrbavac wants to merge 1 commit intomainfrom
fix/resize-job-early-exit
Open

fix(api): remove early return in resize sandbox job success handler#4430
brunogrbavac wants to merge 1 commit intomainfrom
fix/resize-job-early-exit

Conversation

@brunogrbavac
Copy link
Copy Markdown
Collaborator

Description

The RESIZE_SANDBOX success handler had an early return after calling updateQuotaUsage with the new CPU/memory/disk deltas. This caused any logic after the quota update to be skipped when a resize job completed successfully. The return was likely left over from a refactor — the else if (FAILED) branch below handles failures correctly, but the success path was bailing out prematurely. Removing it allows the success handler to fall through and complete the full post-resize flow.

Documentation

  • This change requires a documentation update
  • I have made corresponding changes to the documentation

Signed-off-by: Bruno Grbavac <bruno.grbavac@outlook.com>
Copilot AI review requested due to automatic review settings April 10, 2026 11:13
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes an unintended early return in the RESIZE_SANDBOX job completion handler so that, after updating organization quota usage, the handler continues to run the remaining post-success logic (notably persisting the sandbox’s updated resources/state).

Changes:

  • Removed the premature return after applying resize quota usage changes on successful resize job completion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nx-cloud
Copy link
Copy Markdown

nx-cloud bot commented Apr 10, 2026

View your CI Pipeline Execution ↗ for commit fd97188

Command Status Duration Result
nx run-many --target=build --all --parallel=4 -... ✅ Succeeded 2m 3s View ↗
nx run-many --target=test --all --nxBail=true ✅ Succeeded 2m 21s View ↗
nx run-many --target=docs --all ✅ Succeeded <1s View ↗
nx run-many --target=format --all --parallel=4 ✅ Succeeded 6s View ↗
nx run api:lint ✅ Succeeded <1s View ↗
nx run-many --target=generate:api-client --all ... ✅ Succeeded 12s View ↗

☁️ Nx Cloud last updated this comment at 2026-04-10 11:21:21 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants