X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=inline;f=server.ts;h=6073d2ea4064acb7d373d749bb8fe59d67e77ce9;hb=2a95b88477a547c319108c0bab8692624df6804c;hp=aaf1ea021c3946b0017053d2c599055264ad00c7;hpb=c795e19663a93c24908a7318975f820bac63164f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server.ts b/server.ts index aaf1ea021..6073d2ea4 100644 --- a/server.ts +++ b/server.ts @@ -139,6 +139,7 @@ import { VideoViewsManager } from '@server/lib/views/video-views-manager' import { isTestOrDevInstance } from './server/helpers/core-utils' import { OpenTelemetryMetrics } from '@server/lib/opentelemetry/metrics' import { ApplicationModel } from '@server/models/application/application' +import { VideoChannelSyncLatestScheduler } from '@server/lib/schedulers/video-channel-sync-latest-scheduler' // ----------- Command line ----------- @@ -314,6 +315,7 @@ async function startApplication () { PeerTubeVersionCheckScheduler.Instance.enable() AutoFollowIndexInstances.Instance.enable() RemoveDanglingResumableUploadsScheduler.Instance.enable() + VideoChannelSyncLatestScheduler.Instance.enable() VideoViewsBufferScheduler.Instance.enable() GeoIPUpdateScheduler.Instance.enable() OpenTelemetryMetrics.Instance.registerMetrics() @@ -352,6 +354,7 @@ async function startApplication () { process.on('exit', () => { JobQueue.Instance.terminate() + .catch(err => logger.error('Cannot terminate job queue.', { err })) }) process.on('SIGINT', () => process.exit(0))