Overview
Async jobs: requests delivered within 1 hour (20% off the Sync price) or within 24 hours (50% off), with their results paged while the job runs. Served by the inference endpoint (inference.openrelay.inc). These endpoints return 404 for an organization Async is not turned on for.
Async
Async jobs: requests delivered within 1 hour (20% off the Sync price) or within 24 hours (50% off), with their results paged while the job runs. Served by the inference endpoint (inference.openrelay.inc). These endpoints return 404 for an organization Async is not turned on for.
Workflow record callback Webhook
The events OpenRelay POSTs to a workflow record's callback, and the answers it accepts: the next requests to run, a pause, or the outcome. A workflow record is a batch record whose body carries openrelay.workflow. OpenRelay POSTs an event to its workflow.url, runs the requests the answer returns, and POSTs their results as the next event, until the callback answers completed or failed. The URL is the record's own, not a registered webhook. The request carries the record's workflow.authorization value verbatim as its Authorization header, and Content-Type application/json; it is not signed. Each event is delivered up to four times, with pauses of 1, 2 and 3 seconds between attempts and each attempt bounded by callback_timeout_ms. A timeout, a connection error, a 429 or a 5xx answer is retried, and so is a redirect, which is never followed. When all four attempts fail, the record fails with workflow_callback_unreachable and the rest of the batch keeps running. Any other non-2xx answer fails the record with workflow_callback_rejected.
List async jobs GET
Your organization's async jobs, newest first, a page at a time. Add status to list only the jobs with that status. A request with status reads a bounded number of jobs, so a page can hold fewer than limit, or none, with has_more true. Page on with after set to its last_id, which is then the last job the request read and may not be on the page.