Refactor instance fetching logic into separate job

This commit is contained in:
syeopite
2023-09-24 15:09:59 -04:00
committed by Fijxu
parent 7e680c692f
commit a9fc84bc14
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