Skip to content
Snippets Groups Projects
Unverified Commit 31e7940d authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix multiple workers for the same scheduled status being queueable (#9875)

parent 6b91da97
No related branches found
Tags v2.7.0
No related merge requests found
......@@ -3,6 +3,8 @@
class PublishScheduledStatusWorker
include Sidekiq::Worker
sidekiq_options unique: :until_executed
def perform(scheduled_status_id)
scheduled_status = ScheduledStatus.find(scheduled_status_id)
scheduled_status.destroy!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment