Extract RefreshChannelsJob (#1403)

This commit is contained in:
Matthew McGarvey 2020-10-15 09:22:41 -05:00 committed by GitHub
parent cce6db4aeb
commit 989317e5d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 60 additions and 58 deletions

View file

@ -159,7 +159,7 @@ end
# Start jobs
refresh_channels(PG_DB, logger, config)
Invidious::Jobs.register Invidious::Jobs::RefreshChannelsJob.new(PG_DB, logger, config)
refresh_feeds(PG_DB, logger, config)
subscribe_to_feeds(PG_DB, logger, HMAC_KEY, config)