Skip to main content
POST
Retry Run Task
Retry a single task from a completed run without restarting the entire run. The task is reset to pending and the run relaunches to process it. Only one retry can be queued at a time per squid — no other run may be active.

Headers

string
required
Your API authentication token. Value: Token YOUR_API_KEY

Path Parameters

string
required
Hash ID of the completed run. Retrieve this from the List Runs endpoint.
string
required
Hash ID of the task to retry. Retrieve this from the Get Run Tasks endpoint (data[].user_task).

Constraints

  • The run must be completed (is_done: true). Retrying while the run is still active returns RunInProgress.
  • No other run may be active for the same squid. If one is, ClusterBusy is returned.
  • The run must not have already reached its max_unique_results_per_run cap — if it has, retrying won’t scrape anything new and RunCapReached is returned. Launch a new run instead.
  • A 5-minute cooldown applies between retries of the same task. Retrying too soon returns RetryCooldown.

Code Examples

Response

200

Error Responses

400 RunInProgress
400 ClusterBusy
400 RunCapReached
400 RetryCooldown