Statuses
What each run status and reason means, how rows are called, and how the cap on a run's credits works.
A run's status says where it stands:
| Status | Meaning |
|---|---|
queued | Waiting for a worker. |
started | Calling the endpoint. |
paused | Out of credits. Resumes on its own once your balance covers a row. |
finalizing | The calls are done and the run's files are being written. Treat it as in progress. |
cancelling | Cancel asked: the calls in flight finish, no new ones start. |
completed | The run called every row, and at most half of them failed. A run that reaches its max_cost_per_run on its last row completes too. |
failed | The run stopped or ended badly; reason says why. |
cancelled | Cancelled by you, or by Piloterr. |
completed, failed and cancelled are final. reason explains paused, failed and some cancelled runs:
| Status | reason | What happened |
|---|---|---|
paused | insufficient_credits | The API answered 402: your workspace ran out of credits. |
failed | error_rate | More than half of the rows failed or were invalid. |
failed | max_cost | The run reached the project's max_cost_per_run with rows left uncalled (see below). |
failed | paused_timeout | Paused for more than 7 days without a top-up. |
failed | source_unreachable | The URL input could not be read or parsed, or the search input failed or found nothing. |
failed | mapping_invalid | The URL or search input was read, but a column the mapping uses is gone from it. |
failed | api_key_invalid | The project's API key could not be used: its own key was deactivated, expired or deleted (the project is then disabled until another key is set), or the managed Dataflow key is inactive (the project is not disabled: contact support). See API key. |
failed | endpoint_disabled, endpoint_unavailable, endpoint_not_found… | The endpoint was withdrawn from Dataflow after the run was queued. |
failed | input_missing | The run's frozen rows are gone. |
failed | internal_error | Dataflow could not process the run, even after several attempts. Start it again; contact support with the run's id if it happens again. |
cancelled | null | You cancelled it. A run you cancel while paused keeps insufficient_credits. |
cancelled | killed_by_admin, account_halted_by_admin, cancelled_by_admin, project_disabled_by_admin | Piloterr stopped Dataflow, your workspace's runs, this run or this project. Contact support. |
A run in progress survives restarts of the service: another worker picks it up and resumes from the results already stored. A row whose result is stored is never called again.
How rows are called
- Pace. A run sends at most
rate_percentof your plan's per-second rate limit (50 % by default), with up to 50 rows under way at once. The polls of asynchronous jobs count in that pace. When the API answers with its rate limit, the run slows down, then speeds up again: see Limits. - Invalid rows. A row whose required parameter is empty, or whose value the endpoint does not take, is not called nor billed: its result is
invalid. See Check the rows before a run. - Retries inside a run. A call that times out, gets no answer, or gets
408or a5xxis tried again after 0.5 s, then 1 s: 3 attempts in all. The other4xxanswers are final for that row. - Rate limits. A row met by a
429or a rate-limit401is sent again once the API'sRetry-Afterhas passed (1 s without one), and that does not use one of its 3 attempts: such a row is never failed nor lost because of the limit, and never called twice. Only after 100 such answers in a row does it count as a normal attempt, so that an API answering nothing but its limit still ends the run. - Timeouts. A call may take up to 90 seconds. For asynchronous endpoints, Dataflow polls the job every 2 seconds for up to 10 minutes; past that, the attempt counts as
504 Async job timed out. - Credits. A
402pauses the whole run; the row is called again when it resumes. Rows are billed as the Piloterr API bills them: seecreditsin Follow a run.
Max cost per run
max_cost_per_run caps the credits of each run, counted as in its credits field: the rows billed, plus a search input's search_credits, which count first. It is not a monthly or project-wide budget: every run, retries included, starts again from 0. Rows under way count as if they will be billed, so no new row starts while they could reach the cap: a run goes over it by less than one row's cost. When the cap is reached with rows left, the run stops calling, keeps the results it has, and fails with max_cost. The rows it did not call have no result (done is below total). A run that reaches the cap on its last row completes. A run that resumes, after a pause or on another worker, counts what it already spent.
A scheduled run that reaches its cap ends failed like any other, and counts among the five failed runs in a row that stop a project. Set the cap above what one run usually costs, so that it stops a run that goes wrong rather than every run.
For an endpoint billed per result (per_row), a row's cost is only known from its answer. A capped run sends one row first, then counts each row under way at the dearest row it billed so far, and starts more rows as it bills them, up to 50 at a time. With rows that cost about the same, it goes over the cap by less than one row's cost, like any run. A row dearer than every row billed before it can add its difference: for example, with a cap of 30 and rows of 10 results at 1 credit each, a run spends 30 credits, its fourth row never starting; but rows of 1, 2, 4 and then 64 results spend more than the first rows foretold.
For an endpoint billed per GB, Dataflow counts each row at its minimum, credit_cost, as in the run's credits: the cap holds on those credits, while the Piloterr API bills the size apart, so a run can cost more than its credits say. That is why a project on an endpoint billed per result or per GB must have a max_cost_per_run: creating it, or setting the cap to null, without one answers 422 validation_failed with details[0].path max_cost_per_run. See Project settings.