delayed_job icon indicating copy to clipboard operation
delayed_job copied to clipboard

Adds additional rake task to clear jobs from a specific queue

Open azeezahmed opened this issue 7 years ago • 2 comments

Currently, the 'jobs:clear' task clears all the records from the delayed_job table however, there will be scenarios where jobs only from a specific queue need to be cleared.

ex: restarting (post-maintenance) you would only want to clear WebSocket jobs (news feed) but not subscription charges job (monthly billing).

this pull request adds an additional rake task that accepts a parameter(queue_name) and clears the jobs from the queue.

azeezahmed avatar May 11 '17 12:05 azeezahmed