diff options
author | Chocobozzz <me@florianbigard.com> | 2022-09-14 11:35:58 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-09-14 11:45:18 +0200 |
commit | 4404a7c467a2c6863728127eeff5ca4b59619940 (patch) | |
tree | fef12748e97c9474d1ca7f21e13ad435286549d8 /server.ts | |
parent | fc3784583ce383cec8619be5b1d311b340b645f9 (diff) | |
download | PeerTube-4404a7c467a2c6863728127eeff5ca4b59619940.tar.gz PeerTube-4404a7c467a2c6863728127eeff5ca4b59619940.tar.zst PeerTube-4404a7c467a2c6863728127eeff5ca4b59619940.zip |
Prevent job queue to be started before plugins
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -351,6 +351,12 @@ async function startApplication () { | |||
351 | ApplicationModel.updateNodeVersions() | 351 | ApplicationModel.updateNodeVersions() |
352 | .catch(err => logger.error('Cannot update node versions.', { err })) | 352 | .catch(err => logger.error('Cannot update node versions.', { err })) |
353 | 353 | ||
354 | JobQueue.Instance.start() | ||
355 | .catch(err => { | ||
356 | logger.error('Cannot start job queue.', { err }) | ||
357 | process.exit(-1) | ||
358 | }) | ||
359 | |||
354 | logger.info('HTTP server listening on %s:%d', hostname, port) | 360 | logger.info('HTTP server listening on %s:%d', hostname, port) |
355 | logger.info('Web server: %s', WEBSERVER.URL) | 361 | logger.info('Web server: %s', WEBSERVER.URL) |
356 | 362 | ||