Skip to content

@saflib/jobs-db


Variable: countByStatusJob()

const countByStatusJob: (dbKey) => Promise<ReturnsError<JobStatusCount[], never>>>>

Counts of jobs grouped by status (for the jobs_queue_depth gauge). Statuses with zero jobs are omitted.

Parameters

ParameterType
dbKeysymbol

Returns

Promise<ReturnsError<JobStatusCount[], never>>