0
gem delayed_jobs在開發環境中完美工作。但在生產中,它並不奏效。它拋出使用該delayed_job的電子郵件發送到用戶delayed_jobs錯誤,未定義方法`email'爲零:NilClass
I, [2013-11-20T13:55:28.418252 #31220] INFO -- : 2013-11-20T13:55:28+0000:
[Worker(delayed_job host:li483-234 pid:31220)] 1 jobs processed at 77.3979 j/s, 1 failed
I, [2013-11-20T14:05:48.680718 #31220] INFO -- : 2013-11-20T14:05:48+0000: [Worker(delayed_job host:li483-234 pid:31220)] Job Class#receive_msg (id=1) RUNNING
E, [2013-11-20T14:05:48.683409 #31220] ERROR -- : 2013-11-20T14:05:48+0000: [Worker(delayed_job host:li483-234 pid:31220)] Job Class#receive_msg (id=1) FAILED (5 prior attempts) with NoMethodError: undefined method `email' for nil:NilClass
任何線索在日誌
上午下面的錯誤?
'nil.email'。好吧,現在我已經能夠爲您創建一個複製測試用例,找出*爲什麼*在沒有預期的情況下是零。 – user2864740
感謝您的快速響應。我找到了答案,我已經在下面展示了 –