about summary refs log tree commit diff
path: root/app/workers/scheduler/ambassador_scheduler.rb
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-08-20 05:29:03 -0500
committerFire Demon <firedemon@creature.cafe>2020-08-30 05:45:19 -0500
commitd77bce3d82653091feffa7b3884b695afdd9c006 (patch)
treec17535e77f76ae8316ae055748a61143223b5c77 /app/workers/scheduler/ambassador_scheduler.rb
parentb871342d221eac15d5ce1849206934fe4a0042f5 (diff)
[Spam Prevention] Only allow one community digest worker to execute
Diffstat (limited to 'app/workers/scheduler/ambassador_scheduler.rb')
-rw-r--r--app/workers/scheduler/ambassador_scheduler.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/workers/scheduler/ambassador_scheduler.rb b/app/workers/scheduler/ambassador_scheduler.rb
index b7361821f..f942a9893 100644
--- a/app/workers/scheduler/ambassador_scheduler.rb
+++ b/app/workers/scheduler/ambassador_scheduler.rb
@@ -2,6 +2,7 @@
 
 class Scheduler::AmbassadorScheduler
   include Sidekiq::Worker
+  sidekiq_options lock: :until_executed, retry: 0
 
   def perform
     @ambassador = find_ambassador_acct