Fix configuration for sidekiq-unique-jobs after 7.x upgrade (#15908)

Remove locks from scheduled jobs
This commit is contained in:
Eugen Rochko
2021-03-15 11:17:43 +01:00
committed by GitHub
parent 33198d8c05
commit e89e976e92
12 changed files with 30 additions and 14 deletions

View File

@ -3,7 +3,7 @@
class Scheduler::MediaCleanupScheduler
include Sidekiq::Worker
sidekiq_options lock: :until_executed, retry: 0
sidekiq_options retry: 0
def perform
unattached_media.find_each(&:destroy)