]> cat aescling's git repositories - mastodon.git/commitdiff
Changed retries and rescued in ActivityPub::ProcessingWorker (#14355)
authorTakeshi Umeda <noel.yoshiba@gmail.com>
Mon, 20 Jul 2020 09:26:12 +0000 (18:26 +0900)
committerGitHub <noreply@github.com>
Mon, 20 Jul 2020 09:26:12 +0000 (11:26 +0200)
* Changed the number of retries and rescued exceptions in ActivityPub::ProcessingWorker

* Remove RecordNotUnique from rescue

app/workers/activitypub/processing_worker.rb

index 05139f616db9688890ffa638eb2faf554fdb16cf..cef5953194993a55d27b15d0773f78976b59c13d 100644 (file)
@@ -3,7 +3,7 @@
 class ActivityPub::ProcessingWorker
   include Sidekiq::Worker
 
-  sidekiq_options backtrace: true
+  sidekiq_options backtrace: true, retry: 8
 
   def perform(account_id, body, delivered_to_account_id = nil)
     ActivityPub::ProcessCollectionService.new.call(body, Account.find(account_id), override_timestamps: true, delivered_to_account_id: delivered_to_account_id, delivery: true)