diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2021-10-08 18:39:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-08 18:39:02 +0200 |
| commit | c6f088d6caa5a7387883d94144d761489e17cadf (patch) | |
| tree | 431d95c664623f0360fb65131907b835f68232c5 | |
| parent | 9ba3e1cdb45cc4eafc33c02e773aaee286aac551 (diff) | |
| download | invidious-c6f088d6caa5a7387883d94144d761489e17cadf.tar.gz invidious-c6f088d6caa5a7387883d94144d761489e17cadf.tar.bz2 invidious-c6f088d6caa5a7387883d94144d761489e17cadf.zip | |
Reduce refresh delay, increase backoff start duration
| -rw-r--r-- | src/invidious/jobs/refresh_channels_job.cr | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/invidious/jobs/refresh_channels_job.cr b/src/invidious/jobs/refresh_channels_job.cr index 0adb4b5a..2321e964 100644 --- a/src/invidious/jobs/refresh_channels_job.cr +++ b/src/invidious/jobs/refresh_channels_job.cr @@ -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 |
