開始sidekiq與命令錯誤 「未定義的方法`to_datetime'」 在sidekiq
bundle exec sidekiq -e production -P /path/to/pid/file/tmp/pids/sidekiq.pid -L /path/to/log/file/shared/log/sidekiq.log --daemon
在日誌錯誤
2017-06-29T06:59:44.776Z 16181 TID-1jr7pg ERROR: CRON JOB: undefined method `to_datetime' for #<EtOrbi::EoTime:0x0000000a933848>
2017-06-29T06:59:44.776Z 16181 TID-1jr7pg ERROR: CRON JOB: /home/user/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/core_ext/date_time/calculations.rb:141:in `<=>'
錯誤而執行該方法/home/user/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/core_ext/date_time/calculations.rb:141:in <=>
:
def <=> (other)
super other.kind_of?(Infinity) ? other : other.to_datetime
end
這個問題能做些什麼?
UPD:版本更新導軌3.2.22.5
並有一個新的錯誤
ERROR: CRON JOB: comparison of Time with EtOrbi::EoTime failed
ERROR: CRON JOB: /home/user/.rvm/gems/[email protected]/gems/sidekiq-cron-0.3.1/lib/sidekiq/cron/job.rb:434:in `<'
在這個地方
def not_enqueued_after?(time)
@last_enqueue_time.nil? || @last_enqueue_time < last_time(time)
end
感謝,但現在'與EtOrbi :: EoTime時間比較failed' – dmitriy