From 5a2a9845cde32d6c68997a8d956b02ef00d08e8d Mon Sep 17 00:00:00 2001 From: Amnesthesia Date: Wed, 1 Nov 2023 12:17:02 +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 92af99ca7..3b0ef99ce 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.zrange(EXPIRING_DIGESTS, 0, max_score, byscore: true) + conn.zrangebyscore(EXPIRING_DIGESTS, 0, max_score) end #