Skip to content

Commit 90cf406

Browse files
committed
supressing sqlite fork warnings for rails 7.1 & 7.2
1 parent f4bcf70 commit 90cf406

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/solid_queue/supervisor.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ def initialize(configuration)
2929
end
3030

3131
def start
32+
# suppress_warnings! is called automatically in Rails 8.
33+
# See https://github.com/rails/solid_queue/issues/506
34+
# Make sure to also suppress the warnings in Rails 7.1 and 7.2 usages of Solid Queue
35+
SQLite3::ForkSafety.suppress_warnings! if defined?(SQLite3::ForkSafety)
36+
3237
boot
3338
run_start_hooks
3439

0 commit comments

Comments
 (0)