Skip to content

Commit

Permalink
Merge pull request #293 from alphagov/log-unique-sidekiq-collisions
Browse files Browse the repository at this point in the history
Add logging for duplicate payloads
  • Loading branch information
KludgeKML authored Oct 31, 2023
2 parents 0bbc538 + 2a19656 commit 033803b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workers/process_postcode_worker.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class ProcessPostcodeWorker
include Sidekiq::Worker
sidekiq_options queue: :update_postcode, lock: :until_and_while_executing, lock_timeout: nil
sidekiq_options queue: :update_postcode, lock: :until_and_while_executing, lock_timeout: nil, on_conflict: :log

def perform(postcode)
PostcodeManager.new.update_postcode(postcode)
Expand Down

0 comments on commit 033803b

Please sign in to comment.