You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SDK: recover once when syncCode cache expires before submission (2.0.52) #672
A content-addressed syncCode prepare can report a cache hit, so the SDK skips upload. If that cache object expires before Cloud copies it at run submission, Cloud returns workflow_code_unavailable and terminalizes that admitted run without launching it. The current SDK has already disposed its packed archive and cannot recover an otherwise valid working tree.
Keep the packed snapshot through the first submission. Only when Cloud returns the exact workflow_code_unavailable no-launch refusal, prepare a new run ID without the cache shortcut, upload that same packed snapshot to the new run, and submit once. Never retry the terminalized run ID. Never retry a transport ambiguity or any other rejection. Dispose the snapshot after success or final failure.
Acceptance
Cache hit followed by workflow_code_unavailable creates exactly one fresh preparation, one upload, and one submission for a new run ID.
The retry is bounded to one fresh attempt, with the same snapshot bytes. Another refusal propagates.
Other errors and ambiguous submission outcomes cause no retry.
Tests prove the first run ID is not submitted again, the second uses the uploaded code, and the archive is cleaned up.
Activity