-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
InterruptErrors happen because your process is being SIGKILLed. You'll always see two of them back-to-back because the older execution is the execution that was interrupted, and then the later one is the execution that detected that a previous execution had been interrupted and cleans it up by raising a handleable exception. (btw I have an issue to make this better: #1382) If you're running a single worker instance, I imagine that there is something incorrectly configured with shutdown signals: https://github.com/bensheldon/good_job?tab=readme-ov-file#Interrupts-graceful-shutdown-and-SIGKILL You'll want to send a SIGTERM, wait How are you managing the GoodJob process? In docker or systemd or something else? |
Beta Was this translation helpful? Give feedback.
-
|
Oh man..it took me a while but I finally realized that the DB connection good_job was using with PgBouncer was in transaction mode, instead of a direct connection. This type of connection is what was causing the interrupts. Basically misconfigured it after we had migrated database providers. 🤦🏽 For future travellers, I took the advice given here in creating a separate parent class for the active record for good_job. |
Beta Was this translation helpful? Give feedback.


Oh man..it took me a while but I finally realized that the DB connection good_job was using with PgBouncer was in transaction mode, instead of a direct connection. This type of connection is what was causing the interrupts. Basically misconfigured it after we had migrated database providers. 🤦🏽
For future travellers, I took the advice given here in creating a separate parent class for the active record for good_job.