Delayed Jobs stops after some days

107 Views Asked by At

I'm running a prod environment of RoR 6 with a Digital Ocean Droplet. Everything works well but one thing, i manually run RAILS_ENV=production bin/delayed_job restart and seems to be ok, but after some days the process in charge of running the delayed jobs stops out of the blue, anyone knows why this could be happening?

I also tried to create a cronjob to set up the delayed_job process on a daily basis but it seems that is not working properly:

0 1 * * * 'cd /var/path/to/rails_project/ && RAILS_ENV=production bin/delayed_job restart'
0

There are 0 best solutions below