Releasesv0.1.0
Api referenceEndpointsPipeline

Retry one parked processing job

POST
/v1/pipeline/etl-jobs/{job_id}/retry

Queues the job again with fresh attempts. Only a parked job can be retried (409 otherwise).

Authorization

tenantKey
headerAuthorizationBearer <token>

Tenant API key, ohs_sk_ + 43 base62 characters.

Path Parameters

job_id*integer
Formatint64

Header Parameters

Authorization*string

The tenant API key, as a bearer secret.

Response Body

The job, pending again.

application/json
  1. response

One processing job, turning a stored raw payload into records.

id*integer
Formatint64
user_id*string
Formatuuid
provider*string
tier*string
status*string
Value in"pending""running""parked""done"
attempts*integer
error*|

The error of the last failed attempt.

created_at*string
Formatdate-time
next_attempt_at*|

Set while the job is pending.

Formatdate-time
curl -X POST 'http://localhost:8080/v1/pipeline/etl-jobs/0/retry' \  -H 'Authorization: Bearer ohs_sk_...'
{  "id": 0,  "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",  "provider": "string",  "tier": "string",  "status": "pending",  "attempts": 0,  "error": "string",  "created_at": "2019-08-24T14:15:22Z",  "next_attempt_at": "2019-08-24T14:15:22Z"}
Edit on GitHub