Skip to content

Task Lifecycle

Every task in Agent HQ follows a defined lifecycle from creation to completion.

backlog → queued → processing → done
→ failed
→ blocked

The starting state. Tasks in the backlog are defined but not yet scheduled to run. They sit in the leftmost column of the task board.

The task is scheduled to run and waiting for an available execution slot. Tasks move to this status when you drag them to “In Progress” or when Pilot creates them for immediate execution.

The task is actively running in a sandbox. You can watch real-time execution logs, see code being written, and monitor progress.

The task completed successfully. Output, files, and any generated pull requests are available for review.

The task encountered an error during execution. You can inspect the execution logs to understand what went wrong, then retry or modify the task.

The task requires human intervention — typically an approval decision. See Approvals for the approval workflow.

FromToTrigger
BacklogQueuedUser runs the task or Pilot schedules it
QueuedProcessingExecution slot becomes available
ProcessingDoneTask completes successfully
ProcessingFailedTask encounters an unrecoverable error
ProcessingBlockedTask requires approval
BlockedProcessingUser approves the task
BlockedFailedUser rejects the task
FailedQueuedUser retries the task
DoneQueuedUser reruns the task

You can stop a running task at any time by clicking the Interrupt button in the task detail view. This halts execution immediately. The task moves to a failed state, and you can review any partial output.

Each task tracks:

  • created_at — when the task was created
  • started_at — when execution began
  • completed_at — when execution finished

This lets you see how long each task took to execute.