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

This commit is contained in:
Eugen Rochko 2019-01-20 12:57:05 +01:00 committed by GitHub
부모 6b91da97bb
커밋 31e7940de5
No known key found for this signature in database
GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -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!