Jobs

Background job status for asynchronous asset operations.

GET /api/v1/jobs/

List background jobs.

Parameters

NameInTypeRequired
limitquerynumberoptional
offsetquerynumberoptional

Response

Response 200 (application/json)
{
  "items": [
    {
      "id": "string",
      "type": "ingest-url",
      "status": "pending",
      "assetId": "string",
      "sourceUrl": "string",
      "progress": 0,
      "bytesTransferred": 0,
      "attempts": 0,
      "createdAt": "string",
      "updatedAt": "string",
      "assetName": "string",
      "totalBytes": 0
    }
  ],
  "total": 0
}

GET /api/v1/jobs/{id}

Get a job.

Read a single job. For transcode jobs, encodeAttempts is the number of Encore dispatches and encodeAttemptLog records each dispatch in order (index, startedAt, endedAt?, classification?). This is DISTINCT from attempts, which counts ingest/URL-pull attempts. To obtain the elapsed time of the successful encode alone (excluding retries), read the LAST entry of encodeAttemptLog and compute endedAt − startedAt.

Parameters

NameInTypeRequired
idpathstringrequired

Response

Response 200 (application/json)
{
  "id": "string",
  "type": "ingest-url",
  "status": "pending",
  "assetId": "string",
  "sourceUrl": "string",
  "progress": 0,
  "bytesTransferred": 0,
  "attempts": 0,
  "createdAt": "string",
  "updatedAt": "string",
  "assetName": "string",
  "totalBytes": 0
}
Field notes
  • assetName — Human-readable name of the job's asset, resolved at read time. Absent when the asset has been deleted or cannot be read; fall back to assetId, which is always present.
  • packagingId — Correlation id carried through the packager queue message and echoed on the packager completion callback. The package-job counterpart of encoreJobId.
  • outputPrefix — Deterministic packaged-output prefix this job writes its CMAF/HLS/DASH objects under.
  • interrupted — True when the job was interrupted by an infrastructure/topology event (not a media failure) and is being auto-retried. The job stays running — it is NOT reported as failed. Absent on jobs that were never interrupted. Additive and backward compatible with the existing status enum.
  • interruptionReason — Distinguishable, clearly-recoverable reason the job was interrupted, present only when interrupted is true. interrupted_by_scaledown: the shared worker pool scaled a worker away mid-job, so the work was lost to a topology event (not a media failure). This is RECOVERABLE and typically AUTO-RETRIED by the service with no operator intervention; callers may also retry safely.

DELETE /api/v1/jobs/{id}

Cancel or delete a job.

Parameters

NameInTypeRequired
idpathstringrequired

Response

Response 200 (application/json)
{
  "id": "string",
  "type": "ingest-url",
  "status": "pending",
  "assetId": "string",
  "sourceUrl": "string",
  "progress": 0,
  "bytesTransferred": 0,
  "attempts": 0,
  "createdAt": "string",
  "updatedAt": "string",
  "assetName": "string",
  "totalBytes": 0
}
Field notes
  • assetName — Human-readable name of the job's asset, resolved at read time. Absent when the asset has been deleted or cannot be read; fall back to assetId, which is always present.
  • packagingId — Correlation id carried through the packager queue message and echoed on the packager completion callback. The package-job counterpart of encoreJobId.
  • outputPrefix — Deterministic packaged-output prefix this job writes its CMAF/HLS/DASH objects under.
  • interrupted — True when the job was interrupted by an infrastructure/topology event (not a media failure) and is being auto-retried. The job stays running — it is NOT reported as failed. Absent on jobs that were never interrupted. Additive and backward compatible with the existing status enum.
  • interruptionReason — Distinguishable, clearly-recoverable reason the job was interrupted, present only when interrupted is true. interrupted_by_scaledown: the shared worker pool scaled a worker away mid-job, so the work was lost to a topology event (not a media failure). This is RECOVERABLE and typically AUTO-RETRIED by the service with no operator intervention; callers may also retry safely.