aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-14 18:06:56 +0200
committerChocobozzz <me@florianbigard.com>2018-06-14 18:06:56 +0200
commit2baea0c77cc765f7cbca9c9a2f4272268892a35c (patch)
tree47b1be5535439409a97eb80c0222c9c821b83dae /server.ts
parentbf079b7bfd7f0fb75ceb28e333bb4b74d8840dd4 (diff)
downloadPeerTube-2baea0c77cc765f7cbca9c9a2f4272268892a35c.tar.gz
PeerTube-2baea0c77cc765f7cbca9c9a2f4272268892a35c.tar.zst
PeerTube-2baea0c77cc765f7cbca9c9a2f4272268892a35c.zip
Add ability for uploaders to schedule video update
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index c0e679b02..ef89ff5f6 100644
--- a/server.ts
+++ b/server.ts
@@ -1,4 +1,6 @@
1// FIXME: https://github.com/nodejs/node/pull/16853 1// FIXME: https://github.com/nodejs/node/pull/16853
2import { ScheduleVideoUpdateModel } from './server/models/video/schedule-video-update'
3
2require('tls').DEFAULT_ECDH_CURVE = 'auto' 4require('tls').DEFAULT_ECDH_CURVE = 'auto'
3 5
4import { isTestInstance } from './server/helpers/core-utils' 6import { isTestInstance } from './server/helpers/core-utils'
@@ -28,7 +30,7 @@ import { checkMissedConfig, checkFFmpeg, checkConfig } from './server/initialize
28 30
29// Do not use barrels because we don't want to load all modules here (we need to initialize database first) 31// Do not use barrels because we don't want to load all modules here (we need to initialize database first)
30import { logger } from './server/helpers/logger' 32import { logger } from './server/helpers/logger'
31import { ACCEPT_HEADERS, API_VERSION, CONFIG, STATIC_PATHS } from './server/initializers/constants' 33import { API_VERSION, CONFIG, STATIC_PATHS } from './server/initializers/constants'
32 34
33const missed = checkMissedConfig() 35const missed = checkMissedConfig()
34if (missed.length !== 0) { 36if (missed.length !== 0) {
@@ -80,6 +82,7 @@ import {
80import { Redis } from './server/lib/redis' 82import { Redis } from './server/lib/redis'
81import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler' 83import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler'
82import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler' 84import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler'
85import { UpdateVideosScheduler } from './server/lib/schedulers/update-videos-scheduler'
83 86
84// ----------- Command line ----------- 87// ----------- Command line -----------
85 88
@@ -200,6 +203,7 @@ async function startApplication () {
200 // Enable Schedulers 203 // Enable Schedulers
201 BadActorFollowScheduler.Instance.enable() 204 BadActorFollowScheduler.Instance.enable()
202 RemoveOldJobsScheduler.Instance.enable() 205 RemoveOldJobsScheduler.Instance.enable()
206 UpdateVideosScheduler.Instance.enable()
203 207
204 // Redis initialization 208 // Redis initialization
205 Redis.Instance.init() 209 Redis.Instance.init()