Skip to content

OPEN-56

dispatched and polling are job statuses an implementation may use; a run that only polls is running.

What was open

An engine can park a job that waits on external work and check that work again itself, holding no worker between checks, and it can record a job a worker has claimed but not started. Neither state had a defined status. The only defined wait was the interrupt, which pauses the run and which someone answers; nobody answers a poll. A run whose only open work was such a parked job would also end as completed, because a scheduler pass that returns nothing is quiescence, and a signal sent to it would wait for a job boundary that never comes.

Decision

PIPE-10 defines two more job statuses, both non-terminal, that an implementation may use. dispatched is a job a worker has claimed and not yet started; a cancel observed before it starts makes it cancelled and it never starts. polling is a job parked between checks of external work the engine makes itself (PIPE-11): it is not in flight, holds no worker, is not an interrupt, appears on no interrupt surface and cannot be answered or cancelled as one. Failing at its deadline is an ordinary node failure; interval, backoff and deadline stay the implementation's own. Defining both keeps STORE-11's closed list true, and an implementation that never uses one counts it at zero. A consumer treats a job status it does not recognise as not ended. A run that is only polling (a job polls, none is pending, dispatched, running or interrupted) is running with no pending interrupt: ORC-9's empty pass is not quiescence while a job polls, and ORC-11 gains that step before completion. A pause or cancel takes effect at once on such a run, as the exception to INT-5's job boundary, and a cancel marks polling jobs cancelled. A run that ends any other way, failed included, marks its polling jobs cancelled too, never skipped: their external work has already started, and skipped says a job never ran. Pending and dispatched jobs keep ORC-11's treatment. Waiting between checks does not count against ORC-10's execution time. A snapshot keeps a polling job polling, so a resume never starts its external work twice, and restores a dispatched job as pending. No order of summary keys is fixed: JSON objects are unordered, and no consumer needs an order. ORC-9's summary calls a node run on a later pass a loop going round again, not re-entry, which names a run being entered again (INT-11).

Rules affected