Skip to content
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

Bug regarding checking status when using a last version Daemons gem #1080

Open
3 tasks done
TemaMix opened this issue Mar 13, 2019 · 3 comments
Open
3 tasks done

Bug regarding checking status when using a last version Daemons gem #1080

TemaMix opened this issue Mar 13, 2019 · 3 comments

Comments

@TemaMix
Copy link

TemaMix commented Mar 13, 2019

Basic info

I have a project with delayed_job and I need to check status delayed_job workers after each deploy using a follow script:

require 'delayed/command'
Delayed::Command.new(['start','-n', '2']).daemonize
>delayed_job.0: process with pid 47619 started.
>delayed_job.1: process with pid 47621 started.
Delayed::Command.new(['status']).deamonize

It returns:
delayed_job: no instances running

and the same time into pids folder we have follows files:
delayed_job.0.pid
delayed_job.1.pid

Early, after that I had executed this command, I could get information about current status all workers like as:
delayed_job: running [pid 47619]
delayed_job: running [pid 47621]

However, after updating the project to Rails 5.2 as well as updated an implicit dependency gem daemons up to version 1.3.1 and after that the following script works incorrectly:

Contributing guidelines

@TemaMix
Copy link
Author

TemaMix commented Apr 3, 2019

@albus522 could you please look at it and let me know if you have any concerns or question regarding changes?

@albus522
Copy link
Member

albus522 commented Apr 3, 2019

Historically the daemons gem has been wonky. Process monitoring is a weirdly complex task. I would suggest rolling back to your known good daemons version.

@Confusion
Copy link

This is due to daemons changing the format of names of pid files. See thuehlinger/daemons#40. New functionality has been introduced that DelayedJob could call to keep using the current format with newer versions of daemons.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants