kopia lustrzana https://github.com/OpenDroneMap/NodeODM
engineVersion, engine keys for /info
rodzic
e3395f908d
commit
676e15b421
|
@ -180,12 +180,14 @@ _optional_|Token required for authentication (when authentication is required).|
|
|||
_optional_|Amount of RAM available in bytes|integer
|
||||
|*cpuCores* +
|
||||
_optional_|Number of CPU cores (virtual)|integer
|
||||
|*engine* +
|
||||
_required_|Lowercase identifier of processing engine|string
|
||||
|*engineVersion* +
|
||||
_required_|Current version of processing engine|string
|
||||
|*maxImages* +
|
||||
_optional_|Maximum number of images allowed for new tasks or null if there's no limit.|integer
|
||||
_required_|Maximum number of images allowed for new tasks or null if there's no limit.|integer
|
||||
|*maxParallelTasks* +
|
||||
_optional_|Maximum number of tasks that can be processed simultaneously|integer
|
||||
|*odmVersion* +
|
||||
_optional_|Current version of ODM|string
|
||||
|*taskQueueCount* +
|
||||
_required_|Number of tasks currently being processed or waiting to be processed|integer
|
||||
|*totalMemory* +
|
||||
|
|
File diff suppressed because one or more lines are too long
16
index.js
16
index.js
|
@ -669,7 +669,7 @@ app.get('/options', authCheck, (req, res) => {
|
|||
* description: Info
|
||||
* schema:
|
||||
* type: object
|
||||
* required: [version, taskQueueCount]
|
||||
* required: [version, taskQueueCount, maxImages, engineVersion, engine]
|
||||
* properties:
|
||||
* version:
|
||||
* type: string
|
||||
|
@ -692,17 +692,20 @@ app.get('/options', authCheck, (req, res) => {
|
|||
* maxParallelTasks:
|
||||
* type: integer
|
||||
* description: Maximum number of tasks that can be processed simultaneously
|
||||
* odmVersion:
|
||||
* engineVersion:
|
||||
* type: string
|
||||
* description: Current version of ODM
|
||||
* description: Current version of processing engine
|
||||
* engine:
|
||||
* type: string
|
||||
* description: Lowercase identifier of processing engine
|
||||
*/
|
||||
app.get('/info', authCheck, (req, res) => {
|
||||
async.parallel({
|
||||
cpu: cb => si.cpu(data => cb(null, data)),
|
||||
mem: cb => si.mem(data => cb(null, data)),
|
||||
odmVersion: odmInfo.getVersion
|
||||
engineVersion: odmInfo.getVersion
|
||||
}, (_, data) => {
|
||||
const { cpu, mem, odmVersion } = data;
|
||||
const { cpu, mem, engineVersion } = data;
|
||||
|
||||
// For testing
|
||||
if (req.query._debugUnauthorized){
|
||||
|
@ -719,7 +722,8 @@ app.get('/info', authCheck, (req, res) => {
|
|||
cpuCores: cpu.cores,
|
||||
maxImages: config.maxImages,
|
||||
maxParallelTasks: config.parallelQueueProcessing,
|
||||
odmVersion: odmVersion
|
||||
engineVersion: engineVersion,
|
||||
engine: 'odm'
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Ładowanie…
Reference in New Issue