Sidekiq is mostly used for moving long-running jobs into a background process. It uses Redis to manage its job queue. During development, we often need to clear this queue of jobs to start afresh. For instance, I was generating multiple reports using background jobs. Each report was to be mailed to multiple users. Sometimes, I needed to check the output of a task that was in queue after five other jobs. To clear the queue of jobs, I ran the following commands as listed in Sidekiq wiki.
Sidekiq::ScheduledSet.new.clear