Skip to main content

classify_expired

Function classify_expired 

Source
pub fn classify_expired(expired: TaskProgress) -> ExpiredOutcome
Expand description

Decides what to do with an in-flight task that timed out: retry it (until MAX_DISPATCH_RETRIES dispatches) or give up and report it Fatal — a stand-in that any attempt’s late result replaces. Its message is the last retryable cause reported for the task (e.g. the harness’s Fatal:timeout:wallclock), or cortex / never_completed_with_retries when no attempt reported one.