vendredi 30 juin 2017

error when comparing dates in sidekiq-cron

When run sidekiq, in log receive this error:

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 `<'

error in this place

def not_enqueued_after?(time)
  @last_enqueue_time.nil? || @last_enqueue_time < last_time(time)
end

sidekiq running, but logs out this error. and cron workers not started.

maybe it's because I compare the object EtOrbi::EoTime with ruby's standard DateTime object

Tell me how to fix? thanks

Aucun commentaire:

Enregistrer un commentaire