Skip to content

Conversation

@rossta
Copy link
Contributor

@rossta rossta commented Feb 27, 2025

Fixes the following error after the recent Solid Queue upgrade:

Solid Queue is configured to use 4 threads but the database connection pool is 3. Increase it in `config/database.yml`

Joy of Rails’ Solid Queue is configured to have a thread pool count of 4 (2 threads for workers + 1 thread for the worker itself + 1 thread for the heartbeat task):

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.

A nice improvement would be to make sure Solid Queue can boot in CI.

Pull request checklist

  • I have written tests for code I have added or modified.
  • I linted and tested the project with bin/verify

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.
@rossta rossta merged commit e3abe28 into main Feb 27, 2025
9 checks passed
@rossta rossta deleted the fix/solid-queue-pool-count branch February 27, 2025 16:08
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.

2 participants