Piloterr
Referência da APIRuns

Estimate a retry of the failed rows

GET
/v1/runs/{id}/retry-failed

Which failed rows a retry would call again, and what it would cost. Rows count once, at their latest attempt across the run and its retries; the run or any of its retries may be given. Nothing is started.

Autorização

ApiKeyAuth
headerX-Api-Key<token>

Parâmetros de caminho

id*string

The run's id (GET /v1/projects/{id}/runs, or the answer of POST /v1/projects/{id}/runs)

Length1 <= length

Parâmetros de consulta

include_non_recoverable?string

Also call again the rows that would most likely fail the same way: invalid rows and 4xx other than 402, 408 and 429.

Value in"true""false"

Corpo da resposta

The estimate

application/json
  1. response
run_id*string

The run first launched, which the retry belongs to

rows*integer

Rows the retry would call

recoverable*integer

Failed rows worth calling again: timeouts, network errors, 402, 408, 429, 5xx

non_recoverable*integer

Invalid rows and other 4xx, left out unless include_non_recoverable=true

credit_cost*integer
credits*integer

Credits the retry may spend: its rows at credit_cost, or less under the project's max_cost_per_run (the cap plus one row)

estimated*boolean

True for an endpoint billed per row or per GB: a row's cost is only known from its answer, credit_cost is its minimum

available*|

Credits left; null when unknown

Example Request
curl -X GET 'https://dataflow.piloterr.com/v1/runs/string/retry-failed'
Example Response
{
  "run_id": "cm4j1m8ws0009l208b6yk3pne",
  "rows": 1,
  "recoverable": 1,
  "non_recoverable": 0,
  "credit_cost": 1,
  "credits": 1,
  "estimated": false,
  "available": 4200
}