Skip to content

JobsMetrics

Counters and gauges the runtime records. Every method is optional.

optional jobAttempt(labels, seconds): void

One attempt ended: it returned (ok) or threw.

JobLabels & object

number

void


optional jobFailed(labels): void

One attempt threw. final means BullMQ is done with the job (it is in the failed set).

JobLabels & object

void


optional sweepFailed(sweep): void

A sweep tick threw.

string

void


optional sweepSucceeded(sweep, at): void

A sweep tick finished. Alert on the time since the last one, not on failures alone.

string

Date

void