Add two schedulers' test
This commit is contained in:
parent
33d454fff5
commit
3be796adf8
4 changed files with 28 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
|||
class Scheduler::SidekiqHealthScheduler
|
||||
include Sidekiq::Worker
|
||||
|
||||
sidekiq_options retry: 0
|
||||
sidekiq_options retry: 0, lock: :until_executed, lock_ttl: 15.seconds.to_i
|
||||
|
||||
def perform
|
||||
url = ENV.fetch('SIDEKIQ_HEALTH_FETCH_URL', nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue