collectiveidea / delayed_job

Database based asynchronous priority queue system -- Extracted from Shopify
http://groups.google.com/group/delayed_job
MIT License
4.81k stars 955 forks source link

Feature: StopAndPauseJobsWorkRake : stop or pause the jobs:work rake … #1186

Open muhammadsohaibdev opened 1 year ago

muhammadsohaibdev commented 1 year ago

Adds a functionality for pausing or killing the rake task rake jobs:work.

It will check for relevant file's presence (stop_dj_worker.txt or pause_dj_worker.txt). If the file is present, it will stop or pause the rake task, so no more jobs are locked in the delayed_jobs table in the Database.

This is especially helpful in production environments.