Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Validate DB connection pool before starting supervisor #457

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

rosa
Copy link
Member

@rosa rosa commented Dec 17, 2024

Small follow-up to #427 to also fail when the DB connection pool is too small.

Also, refactor a bit configuration validation to use ActiveModel's
validations.
@rosa rosa merged commit 9fa95c5 into main Dec 17, 2024
8 checks passed
@rosa rosa deleted the more-config-validation branch December 17, 2024 19:00
@jherdman
Copy link
Contributor

Neat idea to use Active Model

@ehutzelman
Copy link

Just wanted to drop a note in case others run into the same issue I did with this change. For those running Kamal deployments and using the RAILS_MAX_THREADS as the pool size, the job runner process will fail to start but Kamal thinks it's a good deployment because the web process starts fine. The jobs docker container will be stuck in an infinite restart loop until the pool size is appropriately configured.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants