Merge #339: checkpoint SQLite WAL outside request threads

This commit is contained in:
GPT on behalf of DHH
2026-10-08 11:33:18 +02:00
6 changed files with 383 additions and 0 deletions
+4
View File
@@ -4,9 +4,13 @@ end
task "resque:pool:setup" do
ActiveRecord::Base.connection.disconnect!
# Initializer may have started a contender in the pool master; drop it before
# workers fork so they do not inherit the flock.
SqliteWalCheckpoint.stop
Resque::Pool.after_prefork do |job|
ActiveRecord::Base.establish_connection
Resque.redis.client.close
SqliteWalCheckpoint.start
end
end