在 sidekiq-cron 中比较日期时出错
error when comparing dates in sidekiq-cron
当运行 sidekiq时,在日志中收到此错误:
ERROR: CRON JOB: comparison of Time with EtOrbi::EoTime failed
ERROR: CRON JOB: /home/user/.rvm/gems/ruby-2.0.0-p247@script-admin/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
sidekiq 运行ning,但注销此错误。并且 cron worker 没有启动。
可能是因为我比较对象EtOrbi::EoTime
和ruby的标准DateTime
对象
告诉我如何解决?谢谢
比较前使用EtOrbi::EoTime#to_time
。
当运行 sidekiq时,在日志中收到此错误:
ERROR: CRON JOB: comparison of Time with EtOrbi::EoTime failed
ERROR: CRON JOB: /home/user/.rvm/gems/ruby-2.0.0-p247@script-admin/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
sidekiq 运行ning,但注销此错误。并且 cron worker 没有启动。
可能是因为我比较对象EtOrbi::EoTime
和ruby的标准DateTime
对象
告诉我如何解决?谢谢
比较前使用EtOrbi::EoTime#to_time
。