Fix multiple workers for the same scheduled status being queueable (#9875)
This commit is contained in:
		| @ -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! | ||||
|  | ||||
		Reference in New Issue
	
	Block a user