Skip to main content

ONE_SHOT_STARTS

Constant ONE_SHOT_STARTS 

Source
pub const ONE_SHOT_STARTS: &[&str];
Expand description

The start kinds that do NOT keep an instance alive. once fires when armed and manual only on an explicit workflow.run; when either finishes there is nothing left waiting, so a job-shaped instance may exit.

Expressed as the EXCEPTIONS rather than as a list of long-lived kinds, because the exceptions are the stable half: every trigger added since has been something that waits (a stream, a webhook), and a new one is far more likely to belong in the long-lived set than out of it. A list of inclusions silently misclassifies whatever is added next; a list of exclusions makes the new kind long-lived by default, which is the safe direction — the cost of a wrong “keeps running” is a process that idles, and the cost of a wrong “may exit” is a listener that dies under its own traffic.