Skip to main content
Recovery begins from an immutable checkpoint whose contents were already verified. This avoids assuming that a failed, cancelled, or timed-out operation produced reusable state.

Prerequisites and complete source

Complete Set up access. In a fresh project, run uv init --python 3.12 and uv add "contree-sdk==0.3.6". Save as recover.py:
Run uv run python recover.py. You should see the intentional command failure, followed by recovered from the same known-good image. Both attempts are disposable because they only check the saved file and print a result. Record stdout, stderr, exit code, truncation, and the operation ID when using REST. A nonzero exit is a workload result; an SDK exception can represent a platform failure, cancellation, or wait timeout. SDK 0.3.6 makes a best-effort cancellation when its wait times out. After uncertain transport or cancellation, inspect the existing operation before retrying. For files from a failed run, follow the result-image rules. See Troubleshooting.