diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-20 05:29:03 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:19 -0500 |
commit | d77bce3d82653091feffa7b3884b695afdd9c006 (patch) | |
tree | c17535e77f76ae8316ae055748a61143223b5c77 /app/workers/scheduler/ambassador_scheduler.rb | |
parent | b871342d221eac15d5ce1849206934fe4a0042f5 (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.rb | 1 |
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 |