2012-07-12 35 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