Piloterr

Cancel or resume a run

Stop a run, keeping the results it received, or resume a run paused for lack of credits.

Cancel

curl -X DELETE https://dataflow.piloterr.com/v1/runs/RUN_ID -H "x-api-key: YOUR_API_KEY"

The answer is 200 with the run. A queued or paused run is cancelled at once, and run.cancelled is sent. A started or finalizing run turns cancelling: the calls in flight finish, no new ones start, and it is cancelled within a few seconds. The results already received are kept. Cancelling a cancelling or cancelled run changes nothing and answers 200 with it; cancelling a completed or failed run answers 409 run_finished.

Resume

A run paused for lack of credits resumes on its own within a minute once your balance covers one row at the endpoint's credit cost. To resume it yourself:

curl -X POST https://dataflow.piloterr.com/v1/runs/RUN_ID/resume -H "x-api-key: YOUR_API_KEY"

It goes back to queued and continues where it stopped (202). Resuming does not check your balance: without credits, the run pauses again at its first call. Only a paused run can resume (409 run_not_paused otherwise). When the run cannot be queued, the answer is 503 queue_unavailable and the run stays paused. While Dataflow is switched off, for everyone or for your workspace, a resume is refused like a launch (403 dataflow_disabled, 403 account_dataflow_disabled) and the run stays paused. A run paused for more than 7 days fails with paused_timeout.

On this page