ruby on rails - How can I keep a Delayed_Job task from failing with "execution expired" -


i thought since background process, there wouldn't sort of timeout. used delayed_job run reports in background. large, long-running reports failing message.

i'm running rails 2.3.5 on apache2 phusion passenger.

from delayed_jobs faq wiki page on github:

# config/initializers/delayed_job_config.rb delayed::job.destroy_failed_jobs = false silence_warnings   delayed::job.const_set("max_attempts", 3)   delayed::job.const_set("max_run_time", 5.minutes) end 

you looking increase max_run_time. default 4 hours, want set 6.hours or longer. should longest think job should take, application / job specific , know longest time that's acceptable is.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -