collectiveidea / delayed_job

Database based asynchronous priority queue system -- Extracted from Shopify
http://groups.google.com/group/delayed_job
MIT License
4.81k stars 955 forks source link

Stops performing jobs after few days #1154

Open owen2345 opened 2 years ago

owen2345 commented 2 years ago

Hi, Delayed_job stops performing background jobs after 3-4 days even if the system process looks normal.

Analysis:

System

Hosting: Kubernetes OS: Debian GNU/Linux 9 Ruby: 2.6 Rails: 6.0.2

amamrenko commented 2 years ago

Hi, Delayed_job stops performing background jobs after 3-4 days even if the system process looks normal.

Analysis:

  • system process looks running (normal) ps ax ==> 14 ? Rl 33255:19 delayed_job
  • review jobs (are not performed) Delayed::Job.count ==> 1 Delayed::Job.count ==> 1 (still not processed after 1 hour)
  • To have working again, I need to kill the pod (restart system)

System

Hosting: Kubernetes OS: Debian GNU/Linux 9 Ruby: 2.6 Rails: 6.0.2

I'm experiencing totally the same situation MacOS. Ruby 3.0.2. On 2.7.5 everything works well. I figured out that it's related to daemons gem.