0
0
Fork 0

Disable retries on all scheduled tasks (#8413)

This commit is contained in:
Eugen Rochko 2018-08-25 13:28:07 +02:00 committed by GitHub
parent 800325f452
commit 93537c5560
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 9 additions and 9 deletions

View file

@ -3,7 +3,7 @@
class Scheduler::DoorkeeperCleanupScheduler
include Sidekiq::Worker
sidekiq_options unique: :until_executed
sidekiq_options unique: :until_executed, retry: 0
def perform
Doorkeeper::AccessToken.where('revoked_at IS NOT NULL').where('revoked_at < NOW()').delete_all