How a job run ended, each job type's record of its runs (BOU-832), and which job types are overdue a success (BOU-834).
How a job run ended, each job type's record of its runs (BOU-832), and which job types are overdue a success (BOU-834).
(after-outcome record
{:keys [job-type outcome started-at finished-at duration-ms]
:as o})record, a job type's record (nil before its first run), after outcome.
`record`, a job type's record (nil before its first run), after `outcome`.
(error-message outcome)The part of outcome's error a record keeps.
The part of `outcome`'s error a record keeps.
A record keeps this much of the last error's message.
A record keeps this much of the last error's message.
(run-outcome job result started-at finished-at duration-ms)What one run of job ended in. result is the handler's, started-at and
finished-at Instants. A failure carries :retrying?: whether the worker
runs it again.
What one run of `job` ended in. `result` is the handler's, `started-at` and `finished-at` Instants. A failure carries `:retrying?`: whether the worker runs it again.
(stale records expect-success now)The records among records (job type -> record) that expect-success
({job-type hours}) says should have succeeded since now minus their
hours, each with :expected-within-hours. A type without a record or
without a success yet is not stale: when it first ran is not kept.
The records among `records` (job type -> record) that `expect-success`
({job-type hours}) says should have succeeded since `now` minus their
hours, each with `:expected-within-hours`. A type without a record or
without a success yet is not stale: when it first ran is not kept.cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |