mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-07 22:47:33 +00:00
chore: add check backends interval configuration option
This commit is contained in:
@@ -5,8 +5,8 @@ class Invidious::Jobs::CheckBackend < Invidious::Jobs::BaseJob
|
||||
def begin
|
||||
loop do
|
||||
BackendInfo.check_backends
|
||||
LOGGER.info("Backend Checker: Done, sleeping for 30 seconds")
|
||||
sleep 30.seconds
|
||||
LOGGER.info("Backend Checker: Done, sleeping for #{CONFIG.check_backends_interval} seconds")
|
||||
sleep CONFIG.check_backends_interval.seconds
|
||||
Fiber.yield
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user