Reduce refresh delay, increase backoff start duration

このコミットが含まれているのは:
Samantaz Fox 2021-10-08 18:39:02 +02:00 committed by GitHub
コミット c6f088d6ca
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更3行の追加3行の削除

ファイルの表示

@ -9,7 +9,7 @@ class Invidious::Jobs::RefreshChannelsJob < Invidious::Jobs::BaseJob
lim_fibers = max_fibers
active_fibers = 0
active_channel = Channel(Bool).new
backoff = 1.seconds
backoff = 2.minutes
loop do
LOGGER.debug("RefreshChannelsJob: Refreshing all channels")
@ -59,8 +59,8 @@ class Invidious::Jobs::RefreshChannelsJob < Invidious::Jobs::BaseJob
end
# TODO: make this configurable
LOGGER.debug("RefreshChannelsJob: Done, sleeping for one hour")
sleep 1.hour
LOGGER.debug("RefreshChannelsJob: Done, sleeping for thirty minutes")
sleep 30.minutes
Fiber.yield
end
end