about summary refs log tree commit diff
path: root/app/workers/activitypub
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-04-13 01:27:22 +0200
committerGitHub <noreply@github.com>2018-04-13 01:27:22 +0200
commit778562c223844226a52198100dc081811bdd9d35 (patch)
tree8e55abb4e55a4fdcacc770f9886d96bf94451eea /app/workers/activitypub
parent9e45b051cfea667f9ca3d3c72d13022259315090 (diff)
Ensure SynchronizeFeaturedCollectionWorker is unique and clean up (#7043)
* Ensure SynchronizeFeaturedCollectionWorker is unique and clean up

Fix #7041

* Fix code style issue
Diffstat (limited to 'app/workers/activitypub')
-rw-r--r--app/workers/activitypub/synchronize_featured_collection_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/activitypub/synchronize_featured_collection_worker.rb b/app/workers/activitypub/synchronize_featured_collection_worker.rb
index dd676a3ee..7b16d3426 100644
--- a/app/workers/activitypub/synchronize_featured_collection_worker.rb
+++ b/app/workers/activitypub/synchronize_featured_collection_worker.rb
@@ -3,7 +3,7 @@
 class ActivityPub::SynchronizeFeaturedCollectionWorker
   include Sidekiq::Worker
 
-  sidekiq_options queue: 'pull'
+  sidekiq_options queue: 'pull', unique: :until_executed
 
   def perform(account_id)
     ActivityPub::FetchFeaturedCollectionService.new.call(Account.find(account_id))