lib/sidekiq/cron/job.rb
# remove previous informations about run times
# this will clear redis and make sure that redis will
# not overflow with memory
remove previous informations about run times
this will clear redis and make sure that redis will
not overflow with memory
remove previous informations about run times this will clear redis and make sure that redis will not overflow with memory
def remove_previous_enques time
        Sidekiq.redis do |conn|
          conn.zremrangebyscore(job_enqueued_key, 0, "(#{(time.to_f - REMEMBER_THRESHOLD).to_s}")
        end
      end
def remove_previous_enques time Sidekiq . redis do | conn | conn . zremrangebyscore ( job_enqueued_key , 0 , "(#{(time.to_f - REMEMBER_THRESHOLD).to_s}" ) end end
remove previous informations about run times
this will clear redis and make sure that redis will
not overflow with memory
remove previous informations about run times this will clear redis and make sure that redis will not overflow with memory
time