lib/sidekiq/scheduler.rb
# Set to enable or disable the scheduler.
Set to enable or disable the scheduler.
Set to enable or disable the scheduler .
def new_rufus_scheduler
        Rufus::Scheduler.new(rufus_scheduler_options).tap do |scheduler|
          scheduler.define_singleton_method(:on_post_trigger) do |job, triggered_time|
            Sidekiq::Scheduler.update_job_next_time(job.tags[0], job.next_time)
          end
        end
      end
def new_rufus_scheduler Rufus :: Scheduler . new ( rufus_scheduler_options ) . tap do | scheduler | scheduler . define_singleton_method ( :on_post_trigger ) do | job , triggered_time | Sidekiq :: Scheduler . update_job_next_time ( job . tags [ 0 ] , job . next_time ) end end end
Set to enable or disable the scheduler.
Set to enable or disable the scheduler .