mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor(server): jobs (#2023)
* refactor: job to domain * chore: regenerate open api * chore: tests * fix: missing breaks * fix: get asset with missing exif data --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
This commit is contained in:
parent
db6b14361d
commit
386eef046d
68 changed files with 1355 additions and 907 deletions
13
mobile/openapi/doc/AllJobStatusResponseDto.md
generated
13
mobile/openapi/doc/AllJobStatusResponseDto.md
generated
|
|
@ -8,11 +8,14 @@ import 'package:openapi/api.dart';
|
|||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**thumbnailGeneration** | [**JobCounts**](JobCounts.md) | |
|
||||
**metadataExtraction** | [**JobCounts**](JobCounts.md) | |
|
||||
**videoConversion** | [**JobCounts**](JobCounts.md) | |
|
||||
**machineLearning** | [**JobCounts**](JobCounts.md) | |
|
||||
**storageTemplateMigration** | [**JobCounts**](JobCounts.md) | |
|
||||
**thumbnailGenerationQueue** | [**JobCountsDto**](JobCountsDto.md) | |
|
||||
**metadataExtractionQueue** | [**JobCountsDto**](JobCountsDto.md) | |
|
||||
**videoConversionQueue** | [**JobCountsDto**](JobCountsDto.md) | |
|
||||
**objectTaggingQueue** | [**JobCountsDto**](JobCountsDto.md) | |
|
||||
**clipEncodingQueue** | [**JobCountsDto**](JobCountsDto.md) | |
|
||||
**storageTemplateMigrationQueue** | [**JobCountsDto**](JobCountsDto.md) | |
|
||||
**backgroundTaskQueue** | [**JobCountsDto**](JobCountsDto.md) | |
|
||||
**searchQueue** | [**JobCountsDto**](JobCountsDto.md) | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
|
|
|||
13
mobile/openapi/doc/JobApi.md
generated
13
mobile/openapi/doc/JobApi.md
generated
|
|
@ -63,7 +63,7 @@ This endpoint does not need any parameter.
|
|||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
# **sendJobCommand**
|
||||
> num sendJobCommand(jobId, jobCommandDto)
|
||||
> sendJobCommand(jobId, jobCommandDto)
|
||||
|
||||
|
||||
|
||||
|
|
@ -84,12 +84,11 @@ import 'package:openapi/api.dart';
|
|||
//defaultApiClient.getAuthentication<ApiKeyAuth>('cookie').apiKeyPrefix = 'Bearer';
|
||||
|
||||
final api_instance = JobApi();
|
||||
final jobId = ; // JobId |
|
||||
final jobId = ; // JobName |
|
||||
final jobCommandDto = JobCommandDto(); // JobCommandDto |
|
||||
|
||||
try {
|
||||
final result = api_instance.sendJobCommand(jobId, jobCommandDto);
|
||||
print(result);
|
||||
api_instance.sendJobCommand(jobId, jobCommandDto);
|
||||
} catch (e) {
|
||||
print('Exception when calling JobApi->sendJobCommand: $e\n');
|
||||
}
|
||||
|
|
@ -99,12 +98,12 @@ try {
|
|||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**jobId** | [**JobId**](.md)| |
|
||||
**jobId** | [**JobName**](.md)| |
|
||||
**jobCommandDto** | [**JobCommandDto**](JobCommandDto.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
**num**
|
||||
void (empty response body)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
|
@ -113,7 +112,7 @@ Name | Type | Description | Notes
|
|||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: application/json
|
||||
- **Accept**: application/json
|
||||
- **Accept**: Not defined
|
||||
|
||||
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
||||
|
||||
|
|
|
|||
2
mobile/openapi/doc/JobCommandDto.md
generated
2
mobile/openapi/doc/JobCommandDto.md
generated
|
|
@ -9,7 +9,7 @@ import 'package:openapi/api.dart';
|
|||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**command** | [**JobCommand**](JobCommand.md) | |
|
||||
**includeAllAssets** | **bool** | |
|
||||
**force** | **bool** | |
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# openapi.model.JobCounts
|
||||
# openapi.model.JobCountsDto
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
# openapi.model.JobId
|
||||
# openapi.model.JobName
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
Loading…
Add table
Add a link
Reference in a new issue