From 5ada81146ada05062d4889a2df47daa47a3dc64e Mon Sep 17 00:00:00 2001 From: Amnesthesia Date: Wed, 1 Nov 2023 12:20:07 +1000 Subject: [PATCH] fix: expired digests --- lib/sidekiq_unique_jobs/orphans/ruby_reaper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq_unique_jobs/orphans/ruby_reaper.rb b/lib/sidekiq_unique_jobs/orphans/ruby_reaper.rb index 3b0ef99c..2b23b635 100644 --- a/lib/sidekiq_unique_jobs/orphans/ruby_reaper.rb +++ b/lib/sidekiq_unique_jobs/orphans/ruby_reaper.rb @@ -79,7 +79,7 @@ def call def expired_digests max_score = (start_time - reaper_timeout).to_f - conn.zrangebyscore(EXPIRING_DIGESTS, 0, max_score) + conn.zrange(EXPIRING_DIGESTS, 0, max_score, 'byscore') end #