mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix multiple workers for the same scheduled status being queueable (#9875)
This commit is contained in:
parent
6b91da97bb
commit
31e7940de5
@ -3,6 +3,8 @@
|
|||||||
class PublishScheduledStatusWorker
|
class PublishScheduledStatusWorker
|
||||||
include Sidekiq::Worker
|
include Sidekiq::Worker
|
||||||
|
|
||||||
|
sidekiq_options unique: :until_executed
|
||||||
|
|
||||||
def perform(scheduled_status_id)
|
def perform(scheduled_status_id)
|
||||||
scheduled_status = ScheduledStatus.find(scheduled_status_id)
|
scheduled_status = ScheduledStatus.find(scheduled_status_id)
|
||||||
scheduled_status.destroy!
|
scheduled_status.destroy!
|
||||||
|
Loading…
Reference in New Issue
Block a user