Refactor instance fetching logic into separate job

This commit is contained in:
syeopite
2023-09-24 15:09:59 -04:00
parent eda7444ca4
commit cff25a7b25
4 changed files with 106 additions and 63 deletions

View File

@@ -185,6 +185,8 @@ Invidious::Jobs.register Invidious::Jobs::NotificationJob.new(CONNECTION_CHANNEL
Invidious::Jobs.register Invidious::Jobs::ClearExpiredItemsJob.new
Invidious::Jobs.register Invidious::Jobs::InstanceListRefreshJob.new
Invidious::Jobs.start_all
def popular_videos