]> cat aescling's git repositories - mastodon.git/commitdiff
Disable retries on all scheduled tasks (#8413)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 25 Aug 2018 11:28:07 +0000 (13:28 +0200)
committerGitHub <noreply@github.com>
Sat, 25 Aug 2018 11:28:07 +0000 (13:28 +0200)
app/workers/scheduler/backup_cleanup_scheduler.rb
app/workers/scheduler/doorkeeper_cleanup_scheduler.rb
app/workers/scheduler/email_scheduler.rb
app/workers/scheduler/feed_cleanup_scheduler.rb
app/workers/scheduler/ip_cleanup_scheduler.rb
app/workers/scheduler/media_cleanup_scheduler.rb
app/workers/scheduler/subscriptions_cleanup_scheduler.rb
app/workers/scheduler/subscriptions_scheduler.rb
app/workers/scheduler/user_cleanup_scheduler.rb

index 023a773077ce5d9534c676e7016cda627961955a..d436606999f1f5c5eac4bebceecdd5b510622871 100644 (file)
@@ -3,7 +3,7 @@
 class Scheduler::BackupCleanupScheduler
   include Sidekiq::Worker
 
-  sidekiq_options unique: :until_executed
+  sidekiq_options unique: :until_executed, retry: 0
 
   def perform
     old_backups.reorder(nil).find_each(&:destroy!)
index fec08c6bc38510ec8a71e863bd13c850eb4d7eb4..e5e5f6bc42fcb035a3453442180d3529be3875fa 100644 (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
index 24117e4241865766d050740645bfc4e4427284eb..24ec89b29853c65164a5645cfb25e74d0572d916 100644 (file)
@@ -3,7 +3,7 @@
 class Scheduler::EmailScheduler
   include Sidekiq::Worker
 
-  sidekiq_options unique: :until_executed
+  sidekiq_options unique: :until_executed, retry: 0
 
   def perform
     eligible_users.reorder(nil).find_each do |user|
index b02bac8837574587fd015741776abb6a47bd058a..cd22734180572c8bd6151f00df95d6220af415de 100644 (file)
@@ -3,7 +3,7 @@
 class Scheduler::FeedCleanupScheduler
   include Sidekiq::Worker
 
-  sidekiq_options unique: :until_executed
+  sidekiq_options unique: :until_executed, retry: 0
 
   def perform
     clean_home_feeds!
index 6bb93df7d146dfc63897fc6e2cf96f7d2c1658a0..42620332e7ee8cad0e42ae6622c0d96d1d59159c 100644 (file)
@@ -5,7 +5,7 @@ class Scheduler::IpCleanupScheduler
 
   RETENTION_PERIOD = 1.year
 
-  sidekiq_options unique: :until_executed
+  sidekiq_options unique: :until_executed, retry: 0
 
   def perform
     time_ago = RETENTION_PERIOD.ago
index a27e02953bb349791d5d4202bab0486b43fc1fcf..fb01aa70c9957237ebdd5fdfb02039e04f9fbc81 100644 (file)
@@ -3,7 +3,7 @@
 class Scheduler::MediaCleanupScheduler
   include Sidekiq::Worker
 
-  sidekiq_options unique: :until_executed
+  sidekiq_options unique: :until_executed, retry: 0
 
   def perform
     unattached_media.find_each(&:destroy)
index 06ba662051cccd2ea04409ef6fad49b3f28f9218..5fba120f6ab339ccfede1b8b232a762b84f9f815 100644 (file)
@@ -3,7 +3,7 @@
 class Scheduler::SubscriptionsCleanupScheduler
   include Sidekiq::Worker
 
-  sidekiq_options unique: :until_executed
+  sidekiq_options unique: :until_executed, retry: 0
 
   def perform
     Subscription.expired.in_batches.delete_all
index 4b0959af20b482c0152de1c672d938674ae9064c..d5873bccb0ea2bfe9d392e827305a6e3a23b46b0 100644 (file)
@@ -3,7 +3,7 @@
 class Scheduler::SubscriptionsScheduler
   include Sidekiq::Worker
 
-  sidekiq_options unique: :until_executed
+  sidekiq_options unique: :until_executed, retry: 0
 
   def perform
     Pubsubhubbub::SubscribeWorker.push_bulk(expiring_accounts.pluck(:id))
index 626fb1652cef979f486a7e9fcd9ec48b629c25b4..881b911be75c2b3967426432546e75852a4148ea 100644 (file)
@@ -3,7 +3,7 @@
 class Scheduler::UserCleanupScheduler
   include Sidekiq::Worker
 
-  sidekiq_options unique: :until_executed
+  sidekiq_options unique: :until_executed, retry: 0
 
   def perform
     User.where('confirmed_at is NULL AND confirmation_sent_at <= ?', 2.days.ago).reorder(nil).find_in_batches do |batch|