lib/delayed_cron/jobs/sidekiq.rb in delayed_cron-0.2.7 vs lib/delayed_cron/jobs/sidekiq.rb in delayed_cron-0.2.8
- old
+ new
@@ -8,10 +8,10 @@
sidekiq_options :queue => :cron_job
def self.enqueue_delayed_cron(klass, method_name, options)
options.symbolize_keys!
unless do_not_enqueue?(klass, method_name, options)
- perform_in(options[:interval], klass, method_name, options)
+ perform_in(options[:interval].to_i, klass, method_name, options)
end
end
def self.do_not_enqueue?(klass, method_name, options)
scheduled?(klass, method_name, options) ||