Skip to content

Commit

Permalink
Add a short-lived lock to trend refresh scheduler (mastodon#27253)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and wesley-crusherr committed Aug 28, 2024
1 parent 3d05861 commit 9fea90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/workers/scheduler/trends/refresh_scheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class Scheduler::Trends::RefreshScheduler
include Sidekiq::Worker

sidekiq_options retry: 0
sidekiq_options retry: 0, lock: :until_executed, lock_ttl: 30.minutes.to_i

def perform
Trends.refresh!
Expand Down

0 comments on commit 9fea90b

Please sign in to comment.