Kaynağa Gözat
Fix multiple workers for the same scheduled status being queueable (#9875)
master
Eugen Rochko
5 yıl önce
committed by
GitHub
ebeveyn
işleme
31e7940de5
Veri tabanında bu imza için bilinen anahtar bulunamadı
GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile
2 ekleme ve
0 silme
-
app/workers/publish_scheduled_status_worker.rb
|
|
@@ -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! |
|
|
|