Skip to main content
100%

Sidekiq queue checking via rails console

✓ Published0🌍 Public
WWilliamQLiu
Last edited Aug 11, 2014
Created on Jul 2, 2019

This example uses the Ruby gem Sidekiq’s built-in APIs—`Sidekiq::Stats`, `Sidekiq::ScheduledSet`, `Sidekiq::RetrySet`, and `Sidekiq::Queue`—to inspect a worker queue from the Rails console. It prints queue statistics such as enqueued, processed, and failed job counts, then iterates over jobs in the “default” queue, extracting and displaying Ruby class arguments from each job’s serialized payload. The output is plain text, showing live queue state and job types directly from the running Sidekiq process.

AI-generated description

Similar vizzes