Maple
Docs / Using Maple

Metrics and monitoring

With metrics.listen set, every worker serves Prometheus metrics. The ones worth an alert are:

MetricWhat it tells
maple_queue_depthJobs waiting, per queue
maple_queue_latency_secondsHow long the oldest waiting job has waited
maple_jobs_failed_totalJobs that used up their attempts
maple_jobs_duration_secondsHow long jobs take, as a histogram

A latency that keeps growing means the workers cannot keep up; add workers or raise concurrency.

Cleaning up

Done jobs are deleted after seven days by the workers themselves, a few thousand at a time, so the table stays small without a cron job of yours.