Repository navigation
ax: add promote to copy a task to another cluster - #618
Merged
Merged
Conversation
ax promote task <name> --to <context> creates a task, with the Gateway and Workspace it binds, on another cluster and resumes it there.
YoyinZyc
reviewed
Nov 17, 2026
| - `/tmp/demo-task.yaml` runs unmodified on GKE; `ax suspend` -> `ax resume` round-trips `/workspace/gcs.txt` through GCS (`saved-in-gcs`). | ||
| - `ax ctx` displays independent `(Healthy)` background tunnels for both `ax-local` and `$GKE_CTX`, allowing instant context switching without manual `kubectl port-forward` management. | ||
|
|
||
| ### 5.3 Promote a Local Task to GKE (`ax promote`) |
Collaborator
There was a problem hiding this comment.
The pr lgtm. I think we could add a detailed user guide or example case about code checkpoint and trajectory continuity. It would be a good reference for user(or their agent) to setup the local to remote pipeline.
Collaborator
Author
There was a problem hiding this comment.
Noted, thanks. I will include it in the follow-up PR.
YoyinZyc
approved these changes
Nov 17, 2026
--suspend-source suspends it once the target has created the task and before the target resumes it, so the task never runs on both.
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.
Add
ax promote task <name> --to <context>: it creates a task that exists on one cluster, with the Gateway and Workspace it binds, on another cluster and resumes it there.--suspend-sourceis set, which suspends the task there once the target has created it and before the target resumes it.--preflight-onlyprints what would change.--replace.spec.sessionId; sandbox files and Secrets are not copied, and a note names the credentials a new Gateway injects.--tonames a kube context and is never resolved fromAX_SERVER(tunnel.Options.IgnoreEnv).Follow-up: Kind E2E, then Secret checks and
--copy-secrets.