JoobQ::RedisMetrics
Inherits Reference < Object
Redis metrics collection and statistics
Constants
DEAD_LETTER = "joobq:dead_letter"
DELAYED_SET = "joobq:delayed_jobs"
PROCESSING_QUEUE = "joobq:processing"
Constructors
new(redis : Redis::PooledClient)
SourceInstance methods
get_multiple_state_counts(states : Array(String)) : Hash(String, Int32)
Optimized method to get job counts for multiple states at once
get_queue_metrics_pipelined(queue_names : Array(String)) : Hash(String, QueueMetrics)
Get queue metrics for multiple queues using pipelining
get_retrying_jobs_paginated(page : Int32, per_page : Int32) : Array(String)
Optimized retrying jobs pagination using Lua script
processing_depth(queue_name : String) : Int64
Jobs in processing for a queue across every process's own list (...:<queue>:<owner>) and the legacy shared
list. A prefix SCAN also matches another queue whose name starts with this one, so each key is checked.