Policies
Policies control how long a job runs and when it stops automatically.
{ "policies": { "maxDurationSec": 7200, "idleTimeoutSec": 60 }}| Field | Default | Description |
|---|---|---|
maxDurationSec | 0 (unlimited) | Maximum job duration in seconds. 0 disables the cap. When reached, the job completes. Max 24 hours. |
idleTimeoutSec | 60 | Seconds with no media activity from any source before the job ends. Set 0 to disable. |
Idle detection
Section titled “Idle detection”- RTC sources (
livekit,jitsi,daily,agora): idle when the room has no active media matching yourselectfilters. - 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.
Stopping jobs
Section titled “Stopping jobs”Jobs also stop when you call DELETE /v1/jobs/:name or when the platform container reaches its maximum lifetime.