]> cat aescling's git repositories - mastodon.git/commitdiff
Retry delivering toots over ActivityPub for about 2 days (#6298)
authorThibG <thib@sitedethib.com>
Fri, 19 Jan 2018 14:49:48 +0000 (15:49 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 19 Jan 2018 14:49:48 +0000 (15:49 +0100)
Currently, Mastodon will retry delivering toots for a bit over 1 hour.
This is a very short timespan when considering private and direct toots, which
cannot be seen by the recipient at all after the delivery attempts have failed.

Ideally, private and direct toots should have a different number of retries,
but I do not know how to do that.

app/workers/activitypub/delivery_worker.rb

index ae86e3dd2e846094b5856b0be83f64c38b04651d..4763856ac36dc3bd2e567fcad07bde8aa8653258 100644 (file)
@@ -3,7 +3,7 @@
 class ActivityPub::DeliveryWorker
   include Sidekiq::Worker
 
-  sidekiq_options queue: 'push', retry: 8, dead: false
+  sidekiq_options queue: 'push', retry: 16, dead: false
 
   HEADERS = { 'Content-Type' => 'application/activity+json' }.freeze