0

我正在从 delay_job 进程中运行 systemu。我有一个工作失败,并在我的delayed_jobs 表中发现了这个错误:

execution expired
/usr/local/rvm/gems/ruby-1.9.2-p320@global/gems/systemu-2.5.0/lib/systemu.rb:76:in `close'
/usr/local/rvm/gems/ruby-1.9.2-p320@global/gems/systemu-2.5.0/lib/systemu.rb:76:in `popen'
/usr/local/rvm/gems/ruby-1.9.2-p320@global/gems/systemu-2.5.0/lib/systemu.rb:76:in `block (2 levels) in systemu'
/usr/local/rvm/gems/ruby-1.9.2-p320@global/gems/systemu-2.5.0/lib/systemu.rb:168:in `quietly'
/usr/local/rvm/gems/ruby-1.9.2-p320@global/gems/systemu-2.5.0/lib/systemu.rb:75:in `block in systemu'
/usr/local/rvm/gems/ruby-1.9.2-p320@global/gems/systemu-2.5.0/lib/systemu.rb:236:in `call'
/usr/local/rvm/gems/ruby-1.9.2-p320@global/gems/systemu-2.5.0/lib/systemu.rb:236:in `block in tmpdir'
/usr/local/rvm/gems/ruby-1.9.2-p320@global/gems/systemu-2.5.0/lib/systemu.rb:221:in `loop'
/usr/local/rvm/gems/ruby-1.9.2-p320@global/gems/systemu-2.5.0/lib/systemu.rb:221:in `tmpdir'
/usr/local/rvm/gems/ruby-1.9.2-p320@global/gems/systemu-2.5.0/lib/systemu.rb:68:in `systemu'
/usr/local/rvm/gems/ruby-1.9.2-p320@global/gems/systemu-2.5.0/lib/systemu.rb:10:in `systemu'

它以前工作得很好,但这是我正在运行的一项更大的工作。我需要设置一些超时吗?

谢谢!

4

1 回答 1

3

好的,问题是delayed_job 超时。我不得不提高时间限制:

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

在 app/config/initializers/delayed_job_config.rb

于 2012-07-19T18:19:07.953 回答