sidekiq-unique-jobs: (6.0.7) `uniquejobs:{digest}:AVAILABLE` keys never expire

Describe the bug uniquejobs:{digest}:AVAILABLE keys never expire. Given an unbounded set of unique arguments, this will fill up redis.

Expected behavior In version 6.0.6, these keys don’t outlive the execution of their jobs.

Current behavior AVAILABLE keys are not cleaned up (introduced in https://github.com/mhenrixon/sidekiq-unique-jobs/pull/354). If there’s a purpose to persisting them, it’s not evident (at least in our use case)

Worker class

class MyWorker
  include Sidekiq::Worker
  sidekiq_options lock: :until_executed
  def perform(args); end

  def self.unique_args(args)
    args
  end
end

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (5 by maintainers)

Commits related to this issue

Most upvoted comments

Released with v6.0.8 @vitalinfo @jwg2s @henrik @zvkemp

I’ll try something tomorrow morning @vitalinfo. Will keep you guys posted