summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2021-09-26 23:31:14 +0200
committerGitHub <noreply@github.com>2021-09-26 23:31:14 +0200
commit9ba3e1cdb45cc4eafc33c02e773aaee286aac551 (patch)
tree3ea6d8acca51d13c58701771f3415069bc162557 /src
parentb20f72b9638e33c5a0417d825cdc5c4af7e855c6 (diff)
downloadinvidious-9ba3e1cdb45cc4eafc33c02e773aaee286aac551.tar.gz
invidious-9ba3e1cdb45cc4eafc33c02e773aaee286aac551.tar.bz2
invidious-9ba3e1cdb45cc4eafc33c02e773aaee286aac551.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/invidious/jobs/refresh_channels_job.cr5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/invidious/jobs/refresh_channels_job.cr b/src/invidious/jobs/refresh_channels_job.cr
index fbe6d381..0adb4b5a 100644
--- a/src/invidious/jobs/refresh_channels_job.cr
+++ b/src/invidious/jobs/refresh_channels_job.cr
@@ -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