2

私はしばらくの間、delayed_job を問題なく使用しています。主に ActionMailer 呼び出しのキューイング用 (Notifier.send_later ...)。最近、同じジョブから無作為に倍数の電子メールを送信します。1 通のメールをキューに入れると、5 回、1 回、または 2 回、すべて同時に受信します。私はdelayed_jobを再起動しましたが、少し動作しているようです。誰でもこれを経験しますか?

これは私のログです。私は前にこれらのエラーを見たことがありません...

# Logfile created on 2010-02-11 by logger.rb
*** below you find the most recent exception thrown, this will be likely (but not certainly) the exception that made the application exit abnormally ***
#<NameError: uninitialized constant Delayed::Worker>
*** below you find all exception objects found in memory, some of them may have been thrown in your application, others may just be in memory because they are standard exceptions ***
#<NoMemoryError: failed to allocate memory>
#<SystemStackError: stack level too deep>
#<fatal: exception reentered>
#<LoadError: no such file to load -- tmail>
#<SystemExit: exit>
#<NameError: uninitialized constant Delayed::Worker::Merb>
#<NameError: uninitialized constant Merb>
#<NameError: uninitialized constant Delayed::Merb>
#<NameError: uninitialized constant Merb>
#<NameError: uninitialized constant Delayed::Merb>
#<NameError: uninitialized constant Delayed::Worker::Merb>
#<NameError: "Gems::DelayedJob-1.8.4::Lib::Delayed::Worker" is not a valid constant name!>
#<NameError: uninitialized constant Delayed::Worker>
4

2 に答える 2

2

When you deploy a new version of your application, make sure to kill all DJ workers and start up only 1 (or however many you want - start with 1 to debug this issue).

ps -ef | grep delayed_job
于 2010-02-12T18:13:22.217 に答える