mhenrixon / sidekiq-unique-jobs

Prevents duplicate Sidekiq jobs
MIT License
1.47k stars 277 forks source link

Changelogs are not ordered #654

Open anyayunli opened 2 years ago

anyayunli commented 2 years ago

Describe the bug You can see from my screenshot, that recent jobs appeared randomly in the log

Screen Shot 2021-11-12 at 9 14 34 AM

Expected behavior Changelogs should be ordered by timestamp

Current behavior Changelogs are not ordered by timestamp

Worker class

class MyWorker
  include Sidekiq::Worker
  sidekiq_options lock: :until_and_while_executing, queue: :low
  def perform(args); end

  def self.lock_args(args)
    # the way you consider unique arguments
  end
end

Additional context Add any other context about the problem here.

mhenrixon commented 2 years ago

I will have a look shortly.