From 9129b7694d577322327ee79e9b9aa64deee92765 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 8 Feb 2021 10:51:10 +0100 Subject: Allow to specify transcoding and import jobs concurrency --- server/initializers/checker-after-init.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'server/initializers/checker-after-init.ts') diff --git a/server/initializers/checker-after-init.ts b/server/initializers/checker-after-init.ts index 979c97a8b..2b00e2047 100644 --- a/server/initializers/checker-after-init.ts +++ b/server/initializers/checker-after-init.ts @@ -116,6 +116,16 @@ function checkConfig () { if (CONFIG.TRANSCODING.WEBTORRENT.ENABLED === false && CONFIG.TRANSCODING.HLS.ENABLED === false) { return 'You need to enable at least WebTorrent transcoding or HLS transcoding.' } + + if (CONFIG.TRANSCODING.CONCURRENCY <= 0) { + return 'Transcoding concurrency should be > 0' + } + } + + if (CONFIG.IMPORT.VIDEOS.HTTP.ENABLED || CONFIG.IMPORT.VIDEOS.TORRENT.ENABLED) { + if (CONFIG.IMPORT.VIDEOS.CONCURRENCY <= 0) { + return 'Video import concurrency should be > 0' + } } // Broadcast message -- cgit v1.2.3