Skip to main content

is_expired_by_age

Function is_expired_by_age 

Source
fn is_expired_by_age(
    created_at: i64,
    max_age_secs: Option<i64>,
    now: i64,
) -> bool
Expand description

True when a job’s hard age-expiry bound (max_age_secs, seconds since created_at) has been reached. None = no bound, never expires by age (the default for every job created before this field existed, and for any job that explicitly opts out). See docs/specs/SPEC_AGENT_POLLING_AND_WAKEUP_HARDENING_2026_08_04.md Phase 0.