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.
このコミットが含まれているのは:
Samantaz Fox 2021-09-26 23:31:14 +02:00 committed by GitHub
コミット 9ba3e1cdb4
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更3行の追加2行の削除

ファイルの表示

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