Skip to content

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.

rossta added a commit to joyofrails/joyofrails.com that referenced this pull request Feb 27, 2025
Solid Queue is configured to have a pool of 4. A change was recently
added to error when it detects a mismatch in the DB pool count.

rails/solid_queue#457

This change updates config/database.yml to match the Solid Queue
default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants