2012-07-12 33 views
0

我正在从delayed_job进程中运行systemu。我有工作失败了,在我delayed_jobs表中找到此错误:systemu - 执行过期

execution expired 
/usr/local/rvm/gems/[email protected]/gems/systemu-2.5.0/lib/systemu.rb:76:in `close' 
/usr/local/rvm/gems/[email protected]/gems/systemu-2.5.0/lib/systemu.rb:76:in `popen' 
/usr/local/rvm/gems/[email protected]/gems/systemu-2.5.0/lib/systemu.rb:76:in `block (2 levels) in systemu' 
/usr/local/rvm/gems/[email protected]/gems/systemu-2.5.0/lib/systemu.rb:168:in `quietly' 
/usr/local/rvm/gems/[email protected]/gems/systemu-2.5.0/lib/systemu.rb:75:in `block in systemu' 
/usr/local/rvm/gems/[email protected]/gems/systemu-2.5.0/lib/systemu.rb:236:in `call' 
/usr/local/rvm/gems/[email protected]/gems/systemu-2.5.0/lib/systemu.rb:236:in `block in tmpdir' 
/usr/local/rvm/gems/[email protected]/gems/systemu-2.5.0/lib/systemu.rb:221:in `loop' 
/usr/local/rvm/gems/[email protected]/gems/systemu-2.5.0/lib/systemu.rb:221:in `tmpdir' 
/usr/local/rvm/gems/[email protected]/gems/systemu-2.5.0/lib/systemu.rb:68:in `systemu' 
/usr/local/rvm/gems/[email protected]/gems/systemu-2.5.0/lib/systemu.rb:10:in `systemu' 

它以前工作正常,但是这是我运行一个大的任务。我需要设置一些暂停吗?

谢谢!

回答

3

好的问题是,delayed_job超时。我只好了时限:

Delayed::Worker.max_run_time = 48.hours #2 days 
在app

/配置/初始化/ delayed_job_config.rb