Add table cleaning job (#3294)

This commit is contained in:
Samantaz Fox
2022-10-12 10:06:36 +02:00
committed by GitHub
parent 6707368f19
commit 3b39b8c772
8 changed files with 146 additions and 9 deletions

View File

@@ -172,6 +172,8 @@ end
CONNECTION_CHANNEL = Channel({Bool, Channel(PQ::Notification)}).new(32)
Invidious::Jobs.register Invidious::Jobs::NotificationJob.new(CONNECTION_CHANNEL, CONFIG.database_url)
Invidious::Jobs.register Invidious::Jobs::ClearExpiredItemsJob.new
Invidious::Jobs.start_all
def popular_videos