-
Notifications
You must be signed in to change notification settings - Fork 953
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
delayed_job script and latest daemons gem #1172
Comments
just to add, I start the workers with individual start commands, passing the queue name and index with I also notice, when I run delayed_job with no arguments, I am shown an option (different to the help with -h), that allows pid_delimiter to be passed, but I cannot get this to be recognised as part of the full command. |
I can reproduce this with delayed_job 4.1.11 and daemons 1.4.1. EDIT: Still experiencing the problem below, but it is not resolved by reverting to daemons 1.1.9. Only Additionally, and even more painfully, is a problem with delayed_job -n 2 restart # Starts 2 workers
delayed_job -n 2 restart # Stops both workers correctly, and starts two new ones
delayed_job -n 4 restart # Stops both workers correctly, and starts four new ones
delayed_job -n 2 restart # Stops ONLY TWO workers, and starts two new ones, leaving two old ones running We have been using |
Following an upgrade to Rails 6, I started having problems being unable to stop workers running using the
stop
command. Basically, it didn't stop the workers../script/delayed_job status
also reported nothing was running .I think I've tracked this down to a change in the daemons gem, which had also been upgraded (to 1.4.1). The interface has changed slightly and doesn't recognise the pid files without providing an additional pid delimiter being provided (https://github.com/thuehlinger/daemons/blob/master/lib/daemons/pidfile.rb#L34). Maybe this is also the cause of the
stop
andstatus
commands not finding the pids.Rolling back the version (to 1.1.9 which I'd been using previously) fixed things for me.
The docs recommend installing the daemons gem, but doesn't specify a version
The text was updated successfully, but these errors were encountered: