How to destroy jobs enqueued by resque workers?

前端 未结 7 1980
日久生厌
日久生厌 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:44

    If you pop open a rails console, you can run this code to clear out your queue(s):

    queue_name = "my_queue"
    Resque.redis.del "queue:#{queue_name}"
    

提交回复
热议问题