Skip to content
Console

Policies

Policies control how long a job runs and when it stops automatically.

{
"policies": {
"maxDurationSec": 7200,
"idleTimeoutSec": 60
}
}
FieldDefaultDescription
maxDurationSec0 (unlimited)Maximum job duration in seconds. 0 disables the cap. When reached, the job completes. Max 24 hours.
idleTimeoutSec60Seconds with no media activity from any source before the job ends. Set 0 to disable.
  • RTC sources (livekit, jitsi, daily, agora): idle when the room has no active media matching your select filters.
  • Pull sources (rtmp_pull, hls_pull, etc.): idle when the stream stalls or disconnects.

Idle periods are not billed for media processing. See Billing overview.

Jobs also stop when you call DELETE /v1/jobs/:name or when the platform container reaches its maximum lifetime.