Fail the job
Reports an error. Retryable failures are requeued while attempts remain (3 in total); the rest fail for good.
Try the REST routes against the public demo at https://demostash.aldyernesto.my.id. Get a read-only token (valid for 60 minutes), then paste it as the Bearer token in the console of any route.
Reports an error. Retryable failures are requeued while attempts remain (3 in total); the rest fail for good.
WorkerTokenX-Worker-Token<token>Per-worker token returned once by worker registration.
id*stringJob id (UUID).
X-Claim-Token*stringClaim token from the claim answer.
application/json- body
error*stringWhat went wrong (shown to people with access to the file).
retryable?|True when another attempt may succeed (the job is requeued while attempts remain).
Failure recorded
application/json- response
status*stringqueued when another attempt follows, else failed.
"queued""failed"attempts*numberAttempts spent so far.
maxAttempts*numberAttempts allowed in total.
curl -X POST "https://example.com/api/v1/pipeline/jobs/string/fail" \ -H "X-Claim-Token: string" \ -H "Content-Type: application/json" \ -d '{ "error": "string" }'{ "status": "queued", "attempts": 0, "maxAttempts": 0}