Skip to content

OPEN-63

When a run ends, a job that never started is skipped and a job that started is cancelled, whatever the run's outcome.

What was open

No rule gave every unfinished job a final status when its run ended. ORC-11 skipped the remaining work of a failed run but excludes cancelled runs; the rules that end a run by cancel spoke of cancelling its active jobs without saying which jobs are active, so the idle and pending jobs of a cancelled run were left without a final status. PIPE-11 marked a polling job cancelled because its external work had started, while ORC-11 skipped an interrupted job whose question had also gone out, treating two siblings differently with no reason given.

Decision

PIPE-10 states the final status once, for every terminal outcome alike. A job never handed out for execution (idle, pending) becomes skipped: it did nothing. A job handed out and abandoned (dispatched, running, polling, interrupted) becomes cancelled: it may have held a claim, made a call or asked a question, and skipped would say it never ran. Interrupted is treated like polling, since both started work outside the run. The final status is given only when the run reaches a terminal status; a paused run keeps its jobs as they are, so it can resume. A terminal job status is never left. A cancel waits for the job in flight (INT-5), while a failed run does not wait for jobs still running beside the failure: they become cancelled at once, and a result such a job returns later is discarded, neither applied to the run's state nor followed along an edge, and at most logged, because the outcome is already recorded and announced. BR-7's collection at the end of a run takes only jobs never handed out, and leaves the others to PIPE-10. ORC-11 and PIPE-11 point at PIPE-10 instead of carrying their own treatment, and the rules that end a run by cancel refer to PIPE-10 for what happens to its jobs.

Rules affected