How to destroy jobs enqueued by resque workers?

前端 未结 7 1976
日久生厌
日久生厌 2021-01-30 05:22

I\'m using Resque on a rails-3 project to handle jobs that are scheduled to run every 5 minutes. I recently did something that snowballed the creation of these jobs and the stac

7条回答
  •  孤街浪徒
    2021-01-30 05:54

    Playing off of the above answers, if you need to clear all of your queues, you could use the following:

    Resque.queues.each{|q| Resque.redis.del "queue:#{q}" }
    

提交回复
热议问题