If you take a look at lib/delayed/backend/recipies.rb you'll see that any delayed_job_args are passed to the start and restart tasks, but not stop.
The problem is that if you enabled monitors with -m, and have multiple workers running (with -n 2 for example) the stop task will not stop the monitors, which will restart delayed_job. If you pass the -n 2 flag to stop then the monitors are turned off correctly (with or without the -m flag).
If you're only running one worker (with or without monitors) there is no issue. Likewise if you're running multiple workers without monitors, no problem. The problem only manifests with multiple workers + monitors.
If you take a look at
lib/delayed/backend/recipies.rb
you'll see that anydelayed_job_args
are passed to thestart
andrestart
tasks, but notstop
.The problem is that if you enabled monitors with
-m
, and have multiple workers running (with-n 2
for example) thestop
task will not stop the monitors, which will restart delayed_job. If you pass the-n 2
flag tostop
then the monitors are turned off correctly (with or without the-m
flag).If you're only running one worker (with or without monitors) there is no issue. Likewise if you're running multiple workers without monitors, no problem. The problem only manifests with multiple workers + monitors.