Add two schedulers' test

This commit is contained in:
KMY 2023-08-09 10:25:25 +09:00
parent 33d454fff5
commit 3be796adf8
4 changed files with 28 additions and 2 deletions

View file

@ -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)