mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-12-08 20:29:05 +00:00
refactor(server): job repository (#1382)
* refactor(server): job repository * refactor: job repository * chore: generate open-api * fix: job panel * Remove incorrect subtitle Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
@@ -2721,40 +2721,6 @@
|
||||
}
|
||||
},
|
||||
"/jobs/{jobId}": {
|
||||
"get": {
|
||||
"operationId": "getJobStatus",
|
||||
"description": "",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "jobId",
|
||||
"required": true,
|
||||
"in": "path",
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/JobId"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/JobStatusResponseDto"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
"Job"
|
||||
],
|
||||
"security": [
|
||||
{
|
||||
"bearer": []
|
||||
}
|
||||
]
|
||||
},
|
||||
"put": {
|
||||
"operationId": "sendJobCommand",
|
||||
"description": "",
|
||||
@@ -4569,48 +4535,28 @@
|
||||
"AllJobStatusResponseDto": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"thumbnailGenerationQueueCount": {
|
||||
"thumbnail-generation": {
|
||||
"$ref": "#/components/schemas/JobCounts"
|
||||
},
|
||||
"metadataExtractionQueueCount": {
|
||||
"metadata-extraction": {
|
||||
"$ref": "#/components/schemas/JobCounts"
|
||||
},
|
||||
"videoConversionQueueCount": {
|
||||
"video-conversion": {
|
||||
"$ref": "#/components/schemas/JobCounts"
|
||||
},
|
||||
"machineLearningQueueCount": {
|
||||
"machine-learning": {
|
||||
"$ref": "#/components/schemas/JobCounts"
|
||||
},
|
||||
"storageMigrationQueueCount": {
|
||||
"storage-template-migration": {
|
||||
"$ref": "#/components/schemas/JobCounts"
|
||||
},
|
||||
"isThumbnailGenerationActive": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isMetadataExtractionActive": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isVideoConversionActive": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isMachineLearningActive": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"isStorageMigrationActive": {
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"thumbnailGenerationQueueCount",
|
||||
"metadataExtractionQueueCount",
|
||||
"videoConversionQueueCount",
|
||||
"machineLearningQueueCount",
|
||||
"storageMigrationQueueCount",
|
||||
"isThumbnailGenerationActive",
|
||||
"isMetadataExtractionActive",
|
||||
"isVideoConversionActive",
|
||||
"isMachineLearningActive",
|
||||
"isStorageMigrationActive"
|
||||
"thumbnail-generation",
|
||||
"metadata-extraction",
|
||||
"video-conversion",
|
||||
"machine-learning",
|
||||
"storage-template-migration"
|
||||
]
|
||||
},
|
||||
"JobId": {
|
||||
@@ -4623,21 +4569,6 @@
|
||||
"storage-template-migration"
|
||||
]
|
||||
},
|
||||
"JobStatusResponseDto": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"isActive": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"queueCount": {
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"isActive",
|
||||
"queueCount"
|
||||
]
|
||||
},
|
||||
"JobCommand": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
|
||||
Reference in New Issue
Block a user