Expose parallelQueueProcessing in /info

pull/51/head
Piero Toffanin 2018-11-09 12:44:18 -05:00
rodzic b75e86183f
commit 42d0091a08
5 zmienionych plików z 11 dodań i 5 usunięć

Wyświetl plik

@ -70,6 +70,8 @@ _optional_|Amount of RAM available in bytes|integer
_optional_|Number of CPU cores (virtual)|integer
|*maxImages* +
_optional_|Maximum number of images allowed for new tasks|integer
|*maxParallelTasks* +
_optional_|Maximum number of tasks that can be processed simultaneously|integer
|*odmVersion* +
_optional_|Current version of ODM|string
|*taskQueueCount* +

File diff suppressed because one or more lines are too long

Wyświetl plik

@ -649,6 +649,9 @@ app.get('/options', (req, res) => {
* maxImages:
* type: integer
* description: Maximum number of images allowed for new tasks
* maxParallelTasks:
* type: integer
* description: Maximum number of tasks that can be processed simultaneously
* odmVersion:
* type: string
* description: Current version of ODM
@ -668,6 +671,7 @@ app.get('/info', (req, res) => {
availableMemory: mem.available,
cpuCores: cpu.cores,
maxImages: config.maxImages,
maxParallelTasks: config.parallelQueueProcessing,
odmVersion: odmVersion
});
});