forked from tobi/delayed_job
-
Notifications
You must be signed in to change notification settings - Fork 953
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If 1 daemonized DJ worker is running and you execute restart with a different n value, the existing worker will effectively be orphaned, in that it continues to run through future stop/start/restart commands with the new n value. The opposite is also true. If you change from an n value of 2+ to 1 when you restart then the running workers will be orphaned. This fixes that problem by looking in the pid_dir to identify all worker process names and stopping them ALL prior to starting n new workers.
- Loading branch information
1 parent
460018e
commit 83d496d
Showing
2 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters