Repository navigation
V8 Backport: Show job GUID in service command progress hints - #3877
Merged
prkalle merged 2 commits intoOct 20, 2026
Merged
Conversation
Async service operations run as CC jobs with no CLI-visible handle. When a command returns before the job finishes (no --wait provided), print the job GUID so users and operators can trace it via 'cf curl v3/jobs/<guid>' which is the only key to that job's status and warnings.
prkalle
reviewed
Oct 14, 2026
prkalle
requested changes
Oct 14, 2026
WaitForResult is an exported function; changing its return type from (bool, error) to (bool, string, error) would break external callers. Introduce WaitForResultWithJobGUID as the GUID-returning variant and keep WaitForResult as a thin wrapper that delegates to it, preserving the original signature. Update the 11 service commands that need the GUID to call WaitForResultWithJobGUID directly.
johha
force-pushed
the
v8-job-guid-service-hints
branch
from
October 20, 2026 12:30
6e26c3a to
49b986d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note: This is the
v8backport of #3876 (which targetsmain).Description of the Change
v8 backport of #3876 — no behavior changes relative to that PR. When a service command returns while the async operation is still running (no
--wait), it now also printsJob (<guid>) is being processed.so users and operators can trace the job viacf curl v3/jobs/<guid>. See #3876 for the full rationale and design.Same change set as #3876, with
v8import paths. The 11 service lifecycle commands gain the hint;delete/delete-org/delete-spaceonly pick up the updatedWaitForResultsignature and print nothing new.Why Is This PR Valuable?
Keeps v8 in parity with
main. See #3876.Applicable Issues
See #3876.
How Urgent Is The Change?
Not urgent.
Other Relevant Parties
Same as #3876.
Note: this PR was developed with AI assistance, with manual review and testing by the author.