lib/sidekiq/cron/job.rb
def should_enque? time
        enqueue = false
        enqueue = Sidekiq.redis do |conn|
          status == "enabled" && not_enqueued_after?(time) && conn.zadd(job_enqueued_key, time.to_f.to_s, formated_last_time(time))
        end
        enqueue
      end
#crucial part of whole enquing job
crucial part of whole enquing job
crucial part of whole enquing job
def should_enque? time
        enqueue = false
        enqueue = Sidekiq.redis do |conn|
          status == "enabled" && not_enqueued_after?(time) && conn.zadd(job_enqueued_key, time.to_f.to_s, formated_last_time(time))
        end
        enqueue
      end
def should_enque? time enqueue = false enqueue = Sidekiq . redis do | conn | status == "enabled" && not_enqueued_after? ( time ) && conn . zadd ( job_enqueued_key , time . to_f . to_s , formated_last_time ( time ) ) end enqueue end
crucial part of whole enquing job
crucial part of whole enquing job
time