aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-11 17:33:36 +0200
committerChocobozzz <me@florianbigard.com>2019-04-12 08:31:06 +0200
commitcda03765fe366f028897e9b02dd4a0a19af3c935 (patch)
tree4d30303d76f8fd171195a51b1f737a0067987d6c /server.ts
parent7b293f28686319242958dff7315cdd8ad74fc15e (diff)
downloadPeerTube-cda03765fe366f028897e9b02dd4a0a19af3c935.tar.gz
PeerTube-cda03765fe366f028897e9b02dd4a0a19af3c935.tar.zst
PeerTube-cda03765fe366f028897e9b02dd4a0a19af3c935.zip
Add ability to delete old remote views
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server.ts b/server.ts
index f4f0c4d68..aa4382ee7 100644
--- a/server.ts
+++ b/server.ts
@@ -101,6 +101,7 @@ import {
101import { advertiseDoNotTrack } from './server/middlewares/dnt' 101import { advertiseDoNotTrack } from './server/middlewares/dnt'
102import { Redis } from './server/lib/redis' 102import { Redis } from './server/lib/redis'
103import { ActorFollowScheduler } from './server/lib/schedulers/actor-follow-scheduler' 103import { ActorFollowScheduler } from './server/lib/schedulers/actor-follow-scheduler'
104import { RemoveOldViewsScheduler } from './server/lib/schedulers/remove-old-views-scheduler'
104import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler' 105import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler'
105import { UpdateVideosScheduler } from './server/lib/schedulers/update-videos-scheduler' 106import { UpdateVideosScheduler } from './server/lib/schedulers/update-videos-scheduler'
106import { YoutubeDlUpdateScheduler } from './server/lib/schedulers/youtube-dl-update-scheduler' 107import { YoutubeDlUpdateScheduler } from './server/lib/schedulers/youtube-dl-update-scheduler'
@@ -242,6 +243,7 @@ async function startApplication () {
242 YoutubeDlUpdateScheduler.Instance.enable() 243 YoutubeDlUpdateScheduler.Instance.enable()
243 VideosRedundancyScheduler.Instance.enable() 244 VideosRedundancyScheduler.Instance.enable()
244 RemoveOldHistoryScheduler.Instance.enable() 245 RemoveOldHistoryScheduler.Instance.enable()
246 RemoveOldViewsScheduler.Instance.enable()
245 247
246 // Redis initialization 248 // Redis initialization
247 Redis.Instance.init() 249 Redis.Instance.init()