I thought that since it was a background process, that there wouldn't be any sort of timeout. I used delayed_job to run reports in the background. Very large, long-running reports are failing with this message.
I'm running Rails 2.3.5 on Apache2 with Phusion Passenger.
From the delayed_jobs faq wiki page on github:
# config/initializers/delayed_job_config.rb
Delayed::Job.destroy_failed_jobs = false
silence_warnings do
Delayed::Job.const_set("MAX_ATTEMPTS", 3)
Delayed::Job.const_set("MAX_RUN_TIME", 5.minutes)
end
You are looking to increase the MAX_RUN_TIME. The default is 4 hours, so you likely want to set it to something like 6.hours
or longer. It should be the longest you think the job should take, but this is clearly application / job specific and you likely know what the longest time that's acceptable is.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With