diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-05-02 22:02:27 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-05-04 21:12:32 +0200 |
commit | 227d02feadbc9b1fc916a12528ccc0623fb3069e (patch) | |
tree | 0b6bcc8c2c081591588714bc040ac6e810e333de /server.js | |
parent | 15d4ee04a94230e1ea83c2959a1981105699ba22 (diff) | |
download | PeerTube-227d02feadbc9b1fc916a12528ccc0623fb3069e.tar.gz PeerTube-227d02feadbc9b1fc916a12528ccc0623fb3069e.tar.zst PeerTube-227d02feadbc9b1fc916a12528ccc0623fb3069e.zip |
Server: add job scheduler to transcode video files
Diffstat (limited to 'server.js')
-rw-r--r-- | server.js | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -40,6 +40,7 @@ const customValidators = require('./server/helpers/custom-validators') | |||
40 | const friends = require('./server/lib/friends') | 40 | const friends = require('./server/lib/friends') |
41 | const installer = require('./server/initializers/installer') | 41 | const installer = require('./server/initializers/installer') |
42 | const migrator = require('./server/initializers/migrator') | 42 | const migrator = require('./server/initializers/migrator') |
43 | const jobScheduler = require('./server/lib/jobs/job-scheduler') | ||
43 | const routes = require('./server/controllers') | 44 | const routes = require('./server/controllers') |
44 | 45 | ||
45 | // ----------- Command line ----------- | 46 | // ----------- Command line ----------- |
@@ -133,6 +134,9 @@ function onDatabaseInitDone () { | |||
133 | // Activate the communication with friends | 134 | // Activate the communication with friends |
134 | friends.activate() | 135 | friends.activate() |
135 | 136 | ||
137 | // Activate job scheduler | ||
138 | jobScheduler.activate() | ||
139 | |||
136 | logger.info('Server listening on port %d', port) | 140 | logger.info('Server listening on port %d', port) |
137 | logger.info('Webserver: %s', constants.CONFIG.WEBSERVER.URL) | 141 | logger.info('Webserver: %s', constants.CONFIG.WEBSERVER.URL) |
138 | 142 | ||