Skip to main content
Every run has a single status. It is the same value whether you read it from the Run API, a webhook, the SDKs, or the CLI.

Final and non-final statuses

Only three statuses are final. Once a run reports one of them, it does not change on its own. The one exception is a manual re-run of the same session by CloudCruise support, which moves it back to execution.requeued. Some webhook events describe progress and are not statuses: execution.step, execution.password_updated, agent.decision_requested, agent.decision_answered and agent.decision_applied. A run that has sent one of them is not final. A question the recovery agent asks a human is reported through agent.decision_requested and agent.decision_answered. If a stop request arrives for a run that has already failed, the run reports execution.failed.

Lifecycle

A run can go through start → requeued → start several times. The number of automatic retries is capped by the workflow’s max_retries, and each retry waits longer than the last.

What to expect

  • A run that is going to be retried never reports execution.failed. When an attempt fails and a retry is scheduled, the status goes straight from execution.start to execution.requeued.
  • execution.failed is reported once, and only when the run is final. Its webhook is sent at that point and not for intermediate attempts.
  • execution.requeued is not a failure result. Treat it as “still in progress, retrying”. The webhook payload carries retry_attempt, max_retries and next_execution_time.
  • A requeued run can end in any final status. After one or more execution.requeued events the run may finish as execution.success, execution.failed (retries exhausted) or execution.stopped.
  • Statuses follow the lifecycle above. A final status is not replaced by another status unless CloudCruise support manually re-runs the session.

When a run’s output is complete

A final status says how the run ended. It can arrive a few seconds before the run’s output (data, file_urls, errors, cumulative_duration) has been fully written. finalized_at is the signal that the output is complete:
  • finalized_at is null while the output is still being written, and set to a timestamp once it is complete. After that the run record does not change.
  • finalized_by says what completed the record:
The execution.success and execution.failed webhooks are sent after finalized_at is written and carry it. If a webhook arrives with finalized_at: null, writing it failed; read the run from the Run API until finalized_at is set. How long to wait for finalized_at:
  • Runs that reached a final status before November 6, 2026 never get finalized_at. The field did not exist yet, and these runs read finalized_at: null permanently. Their output was complete when they reported the final status.
  • Every newer run gets finalized_at, normally within seconds, and about 10 minutes after its final status when the worker never confirmed the end of the run. A backlog on our side can delay it further, so a newer run with finalized_at: null is still incomplete, however long ago it ended. If it is still null after 15 minutes, keep polling at a lower rate; if it is still null after an hour, report it to CloudCruise support with the session_id.

What is not expected

If you see any of these, it is a bug in CloudCruise. Report it with the session_id.
  • A run reads execution.failed and later reads execution.requeued, execution.start, or execution.success, with no manual re-run from CloudCruise support.
  • An execution.failed webhook for a run that was then retried.
  • A final status that changes to a different final status without a manual re-run by CloudCruise support.

Consuming statuses

1

Prefer webhooks or the SDK stream over polling

Webhooks and the SDK server-sent events deliver most status changes as they happen, but not every one: pausing or unpausing a queued run changes the status without sending an event. If you need the current status, read it from the Run API. See Rate limits.
2

If you poll, stop on a final status with finalized_at set

Keep polling while the status is execution.queued, execution.paused, execution.start or execution.requeued. Once it is execution.success, execution.failed or execution.stopped, keep polling until finalized_at is set before you read the run’s output. Runs that ended before November 6, 2026 are the exception and never get it. See When a run’s output is complete.
3

Allow for long gaps while requeued

A requeued run waits before its next attempt, and the wait grows with each retry. Do not apply a short overall timeout to runs on workflows with retries enabled.