문제

나는 한동안 문제없이 Delayed_job을 사용하고 있습니다. 주로 ActionMailer Call (Notifier.send_later ...)을 대기합니다. 최근에는 동일한 작업에서 임의의 이메일 배수를 보냅니다. 나는 하나의 이메일을 대기하고 동시에 5 번 또는 한 번 또는 두 번받을 것이다. 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>
도움이 되었습니까?

해결책

새 버전의 애플리케이션을 배포 할 때 모든 DJ 근로자를 죽이고 1 개만 시작하십시오 (또는 원하는 많은 것 - 1로 시작 하여이 문제를 디버깅하십시오).

ps -ef | grep delayed_job

다른 팁

나는 같은 문제를 겪고 있었는데, 대기열을 확인했을 때 나는 직업에 오류가 발생하고 DJ 가이 작업을 계속해서 달리려고한다는 것을 알았습니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top