Update activity pub jobs

• Update:
- activity pub jobs to retry 0 and dead: true

• Remove:
- ActivityPub DeliveryWorker on account suspension
- Inbox, outbox, collections routes
This commit is contained in:
mgabdev
2020-05-29 13:01:35 -04:00
parent 1f9e33a80b
commit f7a0b022d4
7 changed files with 17 additions and 17 deletions

View File

@@ -6,7 +6,7 @@ class ActivityPub::DeliveryWorker
STOPLIGHT_FAILURE_THRESHOLD = 10
STOPLIGHT_COOLDOWN = 60
sidekiq_options queue: 'push', retry: 3, dead: false
sidekiq_options queue: 'push', retry: 0, dead: true
HEADERS = { 'Content-Type' => 'application/activity+json' }.freeze

View File

@@ -3,7 +3,7 @@
class ActivityPub::DistributionWorker
include Sidekiq::Worker
sidekiq_options queue: 'push'
sidekiq_options queue: 'push', retry: 0, dead: true
def perform(status_id)
@status = Status.find(status_id)

View File

@@ -1,5 +1,5 @@
# frozen_string_literal: true
class ActivityPub::LowPriorityDeliveryWorker < ActivityPub::DeliveryWorker
sidekiq_options queue: 'pull', retry: 3, dead: false
sidekiq_options queue: 'pull', retry: 0, dead: true
end

View File

@@ -3,7 +3,7 @@
class ActivityPub::ProcessingWorker
include Sidekiq::Worker
sidekiq_options backtrace: true, retry: 3
sidekiq_options backtrace: true, retry: 0, dead: true
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)