-
Notifications
You must be signed in to change notification settings - Fork 954
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
script/delayed_job background process immediately dies silently #1084
Comments
@gchiaren Did you ever resolve this? The same thing is happening to me. |
Ok, thanks. I've noticed that certain jobs cause DJ to fail, and sometimes DJ will process multiple jobs and just keep on going. All the jobs pass our tests and work fine in production. I'm slowly migrating everything over to |
FYI - This issue might be related: #935 I've switched to using foreman in dev mode, so instead of running |
This is expected behavior of the daemons gem. You can see here the first thing it does is to fork the parent and exit I forget exactly why. If you're ok to run everything in the foreground (e.g. for a container) try my "forking" mode PR: #1138. This is similar to the Rake task except it can now run multiple workers. |
Closing stale |
This is in development. It seems delayed job immediately dies as soon as I start it, and fails silently without writing anything to the log (that's the most frustrating part bc I'm completely stuck). Below are more details:
I start DJ in the console using
script/delayed_job start
. The PID file is created, but when I do ascript/delayed_job status
it says:Sure enough, the jobs in the database table just sit there, with the first one up getting its
locked_at
timestamp set.My DJ log file only logs the attempted start, but nothing about the stop. It just says:
I followed the instructions in Common Problems to no avail. If I manually run
rake jobs:work
the jobs are indeed processed and disappear from the db.I thought it might be a serialization problem, but I can do this successfully from the console:
Versions of everything:
My DJ config looks like this:
The text was updated successfully, but these errors were encountered: