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:
@@ -13,7 +13,7 @@ class ApplicationJob < ActiveJob::Base
|
|||||||
around_perform do |_job, block|
|
around_perform do |_job, block|
|
||||||
CurrentUser.scoped(User.system, "127.0.0.1") do
|
CurrentUser.scoped(User.system, "127.0.0.1") do
|
||||||
ApplicationRecord.without_timeout do
|
ApplicationRecord.without_timeout do
|
||||||
Timeout.timeout(8.hours, JobTimeoutError) do
|
Timeout.timeout(24.hours, JobTimeoutError) do
|
||||||
block.call
|
block.call
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user