jobs: increase job timeout to 24 hours.

Should fix BigQuery exports failing for the posts table. Apparently even
an 8 hour timeout wasn't enough.
This commit is contained in:
evazion
2022-01-16 15:14:48 -06:00
parent acf565be7b
commit 35b03799a5

View File

@@ -13,7 +13,7 @@ class ApplicationJob < ActiveJob::Base
around_perform do |_job, block|
CurrentUser.scoped(User.system, "127.0.0.1") do
ApplicationRecord.without_timeout do
Timeout.timeout(8.hours, JobTimeoutError) do
Timeout.timeout(24.hours, JobTimeoutError) do
block.call
end
end