Decrease channel refresh frequency (1 min -> 1 h)

This is a temporary fix to reduce load on instances with many channels and avoid IP being flagged by Google.
pull/2433/head
Samantaz Fox 2021-09-26 23:31:14 +02:00 zatwierdzone przez GitHub
rodzic b20f72b963
commit 9ba3e1cdb4
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -58,8 +58,9 @@ class Invidious::Jobs::RefreshChannelsJob < Invidious::Jobs::BaseJob
end end
end end
LOGGER.debug("RefreshChannelsJob: Done, sleeping for one minute") # TODO: make this configurable
sleep 1.minute LOGGER.debug("RefreshChannelsJob: Done, sleeping for one hour")
sleep 1.hour
Fiber.yield Fiber.yield
end end
end end