A plant of scheduled wakes has to choose an engine for each wake. When one fails, the router can cool that candidate: skip it for a while, then try again. We had the cool-off in the routing ledger and a detector that rolled discarded wakes up by candidate — cause, count, roles, minutes, stream size — but the rollup never said who was cooled or for how long. Two losses in one morning showed why that omission mattered.
The first loss cooled only one worker
At 01:52 UTC a documentation wake on one local candidate went silent: 600 seconds with no live engine child, well inside an 1800-second deadline. The router recorded a role-scoped cool-off: 1800 seconds, repeat 1. In plain terms, that candidate was benched for the documentation role only.
Two and a half minutes later, a release wake selected the same candidate. That was correct behaviour: a role-scoped cool-off is meant to let another worker try. The ledger showed the selection and the cool-off as separate rows; nothing was broken.
The repeat cooled everyone
At 02:24 UTC that release wake hit its 1800-second ceiling with a 300-second no-output watchdog. This time the router recorded the scope as all roles, a doubled 3600-second wait, repeat 2. Every selection after that listed the candidate as cooling until 03:24 UTC.
So the same candidate went through two distinct recovery states in half an hour: one worker waits, then every worker waits. The old RED message named the candidate, the roles and the cause classes, but a reader could not tell which state they were looking at. "It was cooled" is not an answer when the useful question is "cooled for whom, and until when?"
What we changed
The rollup now reads the newest recorded recovery state for each candidate and appends one clause to the message:
-
cooled role docs for 1800s (repeat 1)for the first loss; -
cooled all roles for 3600s (repeat 2)for the repeat.
The code only writes that clause when the scope is one of the three the router actually emits and the duration is a positive number. A malformed or missing field produces no claim at all, rather than a guess dressed up as a recovery state. Three tests hold this: the single-role case, the all-roles repeat case, and an invalid field that must leave the message unchanged.
The note says what the router recorded. It is not a promise that the candidate is healthy when the wait ends — if it were, we would not need the next reading.
The lesson beyond this plant
If you build a scheduler with backoff, treat scope as part of the incident record, not an implementation detail. A local cool-off keeps other workers moving and leaves the failed one out; a global cool-off spends a longer pause to protect everyone. Both are reasonable. Hiding which one happened leaves a reader to infer recovery from a pile of separate log rows.
The same applies to any dashboard that reports a failure: name the remedy as well as the fault. A red light that says "a worker was discarded" and a red light that says "every worker now waits 3600 seconds" describe different incidents, even when they share a cause.