ruby-shoryuken / shoryuken

A super efficient Amazon SQS thread based message processor for Ruby. This project is in MAINTENANCE MODE. Reach me out on Slack link on the description if you want to become a new maintainer.
Other
2.06k stars 280 forks source link

Shutdown when workers encounter unrecoverable errors #773

Closed jeropaul closed 1 month ago

jeropaul commented 3 months ago

Background:

Roughly every 7 days RDS rotates the password and updates the associated secret. This cannot automatically update the environment of the running ECS instances.

Eventually ActiveRecord attempts to create a new DB connection and fails raising an ActiveRecord::NoDatabaseError. I believe is being caught by middleware/server/exponential_backoff_retry.rb

What I really want is for the shoryuken process to be shutdown when this error is encountered, as ECS will then restart the container with refreshed environment properties.


however reading through the code and comments on other issues it looks like this is not possible. Any suggestions?

github-actions[bot] commented 1 month ago

This issue is now marked as stale because it hasn't seen activity for a while. Add a comment or it will be closed soon.

github-actions[bot] commented 1 month ago

This issue was closed because it hasn't seen activity for a while.