Liking cljdoc? Tell your friends :D

wagoe.jobs.core.outcome

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).
raw docstring

after-outcomeclj

(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`.
sourceraw docstring

error-messageclj

(error-message outcome)

The part of outcome's error a record keeps.

The part of `outcome`'s error a record keeps.
sourceraw docstring

max-error-lengthclj

A record keeps this much of the last error's message.

A record keeps this much of the last error's message.
sourceraw docstring

run-outcomeclj

(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.
sourceraw docstring

staleclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close