mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Reduce refresh delay, increase backoff start duration
This commit is contained in:
parent
9ba3e1cdb4
commit
c6f088d6ca
1 changed files with 3 additions and 3 deletions
|
@ -9,7 +9,7 @@ class Invidious::Jobs::RefreshChannelsJob < Invidious::Jobs::BaseJob
|
||||||
lim_fibers = max_fibers
|
lim_fibers = max_fibers
|
||||||
active_fibers = 0
|
active_fibers = 0
|
||||||
active_channel = Channel(Bool).new
|
active_channel = Channel(Bool).new
|
||||||
backoff = 1.seconds
|
backoff = 2.minutes
|
||||||
|
|
||||||
loop do
|
loop do
|
||||||
LOGGER.debug("RefreshChannelsJob: Refreshing all channels")
|
LOGGER.debug("RefreshChannelsJob: Refreshing all channels")
|
||||||
|
@ -59,8 +59,8 @@ class Invidious::Jobs::RefreshChannelsJob < Invidious::Jobs::BaseJob
|
||||||
end
|
end
|
||||||
|
|
||||||
# TODO: make this configurable
|
# TODO: make this configurable
|
||||||
LOGGER.debug("RefreshChannelsJob: Done, sleeping for one hour")
|
LOGGER.debug("RefreshChannelsJob: Done, sleeping for thirty minutes")
|
||||||
sleep 1.hour
|
sleep 30.minutes
|
||||||
Fiber.yield
|
Fiber.yield
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue