Skip to content
Alphahelmstudio is early software: things will change, and some will break.What's newReport an issue

Cancel a queued or running export or frame job

POST
/v1/studio/media-jobs/{job_id}/cancel
curl --request POST \
--url http://localhost:8300/v1/studio/media-jobs/example/cancel \
--header 'Authorization: Bearer <token>' \
--header 'x-api-key: <x-api-key>'

The runner stops ffmpeg (SIGTERM, 10 s, SIGKILL), removes its temp files and reports cancelled. If the env’s hosts key is gone or older than 60 s, studio marks it cancelled itself. 409 job already ended. Answers the job as it is now.

job_id
required
string

Media job UUID (malformed = 404)

The job

Media typeapplication/json
object
id
required
string format: uuid
kind
required
string
Allowed values: export frame
status
required
string
Allowed values: queued running succeeded failed cancelled
host
required
string
env
required
string
timeline_id
required

Export: the sequence

string | null format: uuid
revision
required

Export: the revision exported

integer | null
>= 1
source_take_id
required

Frame: the video take

string | null format: uuid
mode
required

Export: what was planned (copy = picture stream copy); once it ended, what the runner did (copy can fall back to conform)

string | null
Allowed values: copy conform
reason

Export: why the runner fell back to conform; null otherwise

string | null
progress
required
One of:
object
frames
required
integer
total
required
integer
>= 1
take_id
required

Succeeded: the take it made (an export: a video take, source export; a frame: an image take, source frame)

string | null format: uuid
failure
required
One of:
object
class
required

Host_lost: its host stopped responding; export again: another live host is chosen

string
Allowed values: input invalid ffmpeg verify internal host_lost
detail
required
string
created_at
required
string format: date-time
started_at
required
string | null format: date-time
finished_at
required
string | null format: date-time

Example

{
"kind": "export",
"status": "queued",
"mode": "copy",
"failure": {
"class": "input"
}
}

Missing or invalid x-api-key (Kong), or missing/invalid/expired/revoked bearer token

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Not found

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

The resource’s state forbids this

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}

Retryable

Media typeapplication/json
object
detail
required
string

Example generated

{
"detail": "example"
}