Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include zeros for missing queue states in polling metrics
DB query will only count jobs that exist. When counts for a particular queue state combination disappears from one poll to the next, some tools will show the stale last-seen count, when the true count is zero. This change will include zeros for all missing queue + state combinations. Queues are taken from the Oban config, and Oban exposes all possible states in `Oban.Job.states/0`. This addresses issue akoutmos#202
- Loading branch information