feat(cli): add wait commands and enhance agentic output for builds and runs#1168
Open
l2ysho wants to merge 5 commits into
Open
feat(cli): add wait commands and enhance agentic output for builds and runs#1168l2ysho wants to merge 5 commits into
l2ysho wants to merge 5 commits into
Conversation
…d runs Introduces dedicated `wait` commands and unifies output for several build/run commands for better CI/CD integration.
Contributor
Author
|
lets wait for #1134 |
The earlier change made `apify push` exit non-zero whenever the build had not reached SUCCEEDED, including non-terminal RUNNING/READY states. That broke the E2E lifecycle tests and any CI that treats a successful upload + in-progress build as a successful push. Only treat a terminal, non-SUCCEEDED status as a push failure.
…-agentic-workflows
waitForTerminalStatus overwrote a still-RUNNING job's status with a
synthetic TIMED-OUT when the client-side --timeout elapsed, so an agent
consuming the JSON could not tell "I gave up waiting" from "the platform
job timed out" (both reported TIMED-OUT, exit 2).
It now returns { job, timedOutWaiting } with the real platform status,
and the wait commands map a give-up to a distinct WaitTimedOut (6) exit
code, a timedOutWaiting JSON field, and give-up-specific messaging. The
exit-code mapping lives in a shared exitCodeForWaitResult helper.
Also drop the unused consoleActorUrl/consoleKeyValueStoreUrl exports.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…output-for-agentic-workflows' into 1135-improve-apify-cli-buildrun-output-for-agentic-workflows
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.
Introduces dedicated
waitcommands and unifies output for several build/run commands for better CI/CD integration.closes #1140