Skip to content

OPEN-55

The job and run status vocabularies are listed, and reading an unknown value is not a licence to write one.

What was open

STORE-11 called the job, pipeline, session, message and interrupt status vocabularies closed, yet no rule listed the job or the pipeline statuses. PIPE-2 required one counter per defined job status without saying which statuses are defined, and PIPE-3 described how a read reports a status outside the vocabulary, which could be read as permission to persist one.

Decision

PIPE-10 lists the job statuses (idle, pending, running, interrupted, completed, failed, cancelled, skipped) and the run statuses (pending, running, paused, completed, failed, cancelled), with one line of meaning each and which of them are terminal. Both lists are closed, because a consumer decides from a status alone whether a job or a run has ended, and the job status summary carries one counter per job status. The queued answer of an asynchronous launch and the interrupted answer of an execution are answers, not run statuses. STORE-11 points at PIPE-10 and says outright that a status outside its vocabulary is never persisted. PIPE-3's handling of such a value stays, as tolerance for a reader that meets a record it did not write, and PIPE-2's counters are those of PIPE-10. The session, message and interrupt vocabularies are not listed by this ruling.

Rules affected