forked from Cutlery/immich
disable concurrency
This commit is contained in:
parent
179834faeb
commit
754765ece1
1
mobile/openapi/doc/SystemConfigJobDto.md
generated
1
mobile/openapi/doc/SystemConfigJobDto.md
generated
@ -9,7 +9,6 @@ import 'package:openapi/api.dart';
|
|||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------ | ------------- | ------------- | -------------
|
------------ | ------------- | ------------- | -------------
|
||||||
**backgroundTask** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
**backgroundTask** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
||||||
**duplicateDetection** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
|
||||||
**faceDetection** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
**faceDetection** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
||||||
**library_** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
**library_** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
||||||
**metadataExtraction** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
**metadataExtraction** | [**JobSettingsDto**](JobSettingsDto.md) | |
|
||||||
|
10
mobile/openapi/lib/model/system_config_job_dto.dart
generated
10
mobile/openapi/lib/model/system_config_job_dto.dart
generated
@ -14,7 +14,6 @@ class SystemConfigJobDto {
|
|||||||
/// Returns a new [SystemConfigJobDto] instance.
|
/// Returns a new [SystemConfigJobDto] instance.
|
||||||
SystemConfigJobDto({
|
SystemConfigJobDto({
|
||||||
required this.backgroundTask,
|
required this.backgroundTask,
|
||||||
required this.duplicateDetection,
|
|
||||||
required this.faceDetection,
|
required this.faceDetection,
|
||||||
required this.library_,
|
required this.library_,
|
||||||
required this.metadataExtraction,
|
required this.metadataExtraction,
|
||||||
@ -28,8 +27,6 @@ class SystemConfigJobDto {
|
|||||||
|
|
||||||
JobSettingsDto backgroundTask;
|
JobSettingsDto backgroundTask;
|
||||||
|
|
||||||
JobSettingsDto duplicateDetection;
|
|
||||||
|
|
||||||
JobSettingsDto faceDetection;
|
JobSettingsDto faceDetection;
|
||||||
|
|
||||||
JobSettingsDto library_;
|
JobSettingsDto library_;
|
||||||
@ -51,7 +48,6 @@ class SystemConfigJobDto {
|
|||||||
@override
|
@override
|
||||||
bool operator ==(Object other) => identical(this, other) || other is SystemConfigJobDto &&
|
bool operator ==(Object other) => identical(this, other) || other is SystemConfigJobDto &&
|
||||||
other.backgroundTask == backgroundTask &&
|
other.backgroundTask == backgroundTask &&
|
||||||
other.duplicateDetection == duplicateDetection &&
|
|
||||||
other.faceDetection == faceDetection &&
|
other.faceDetection == faceDetection &&
|
||||||
other.library_ == library_ &&
|
other.library_ == library_ &&
|
||||||
other.metadataExtraction == metadataExtraction &&
|
other.metadataExtraction == metadataExtraction &&
|
||||||
@ -66,7 +62,6 @@ class SystemConfigJobDto {
|
|||||||
int get hashCode =>
|
int get hashCode =>
|
||||||
// ignore: unnecessary_parenthesis
|
// ignore: unnecessary_parenthesis
|
||||||
(backgroundTask.hashCode) +
|
(backgroundTask.hashCode) +
|
||||||
(duplicateDetection.hashCode) +
|
|
||||||
(faceDetection.hashCode) +
|
(faceDetection.hashCode) +
|
||||||
(library_.hashCode) +
|
(library_.hashCode) +
|
||||||
(metadataExtraction.hashCode) +
|
(metadataExtraction.hashCode) +
|
||||||
@ -78,12 +73,11 @@ class SystemConfigJobDto {
|
|||||||
(videoConversion.hashCode);
|
(videoConversion.hashCode);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
String toString() => 'SystemConfigJobDto[backgroundTask=$backgroundTask, duplicateDetection=$duplicateDetection, faceDetection=$faceDetection, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion]';
|
String toString() => 'SystemConfigJobDto[backgroundTask=$backgroundTask, faceDetection=$faceDetection, library_=$library_, metadataExtraction=$metadataExtraction, migration=$migration, search=$search, sidecar=$sidecar, smartSearch=$smartSearch, thumbnailGeneration=$thumbnailGeneration, videoConversion=$videoConversion]';
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
final json = <String, dynamic>{};
|
final json = <String, dynamic>{};
|
||||||
json[r'backgroundTask'] = this.backgroundTask;
|
json[r'backgroundTask'] = this.backgroundTask;
|
||||||
json[r'duplicateDetection'] = this.duplicateDetection;
|
|
||||||
json[r'faceDetection'] = this.faceDetection;
|
json[r'faceDetection'] = this.faceDetection;
|
||||||
json[r'library'] = this.library_;
|
json[r'library'] = this.library_;
|
||||||
json[r'metadataExtraction'] = this.metadataExtraction;
|
json[r'metadataExtraction'] = this.metadataExtraction;
|
||||||
@ -105,7 +99,6 @@ class SystemConfigJobDto {
|
|||||||
|
|
||||||
return SystemConfigJobDto(
|
return SystemConfigJobDto(
|
||||||
backgroundTask: JobSettingsDto.fromJson(json[r'backgroundTask'])!,
|
backgroundTask: JobSettingsDto.fromJson(json[r'backgroundTask'])!,
|
||||||
duplicateDetection: JobSettingsDto.fromJson(json[r'duplicateDetection'])!,
|
|
||||||
faceDetection: JobSettingsDto.fromJson(json[r'faceDetection'])!,
|
faceDetection: JobSettingsDto.fromJson(json[r'faceDetection'])!,
|
||||||
library_: JobSettingsDto.fromJson(json[r'library'])!,
|
library_: JobSettingsDto.fromJson(json[r'library'])!,
|
||||||
metadataExtraction: JobSettingsDto.fromJson(json[r'metadataExtraction'])!,
|
metadataExtraction: JobSettingsDto.fromJson(json[r'metadataExtraction'])!,
|
||||||
@ -163,7 +156,6 @@ class SystemConfigJobDto {
|
|||||||
/// The list of required keys that must be present in a JSON.
|
/// The list of required keys that must be present in a JSON.
|
||||||
static const requiredKeys = <String>{
|
static const requiredKeys = <String>{
|
||||||
'backgroundTask',
|
'backgroundTask',
|
||||||
'duplicateDetection',
|
|
||||||
'faceDetection',
|
'faceDetection',
|
||||||
'library',
|
'library',
|
||||||
'metadataExtraction',
|
'metadataExtraction',
|
||||||
|
@ -21,11 +21,6 @@ void main() {
|
|||||||
// TODO
|
// TODO
|
||||||
});
|
});
|
||||||
|
|
||||||
// JobSettingsDto duplicateDetection
|
|
||||||
test('to test the property `duplicateDetection`', () async {
|
|
||||||
// TODO
|
|
||||||
});
|
|
||||||
|
|
||||||
// JobSettingsDto faceDetection
|
// JobSettingsDto faceDetection
|
||||||
test('to test the property `faceDetection`', () async {
|
test('to test the property `faceDetection`', () async {
|
||||||
// TODO
|
// TODO
|
||||||
|
@ -9917,9 +9917,6 @@
|
|||||||
"backgroundTask": {
|
"backgroundTask": {
|
||||||
"$ref": "#/components/schemas/JobSettingsDto"
|
"$ref": "#/components/schemas/JobSettingsDto"
|
||||||
},
|
},
|
||||||
"duplicateDetection": {
|
|
||||||
"$ref": "#/components/schemas/JobSettingsDto"
|
|
||||||
},
|
|
||||||
"faceDetection": {
|
"faceDetection": {
|
||||||
"$ref": "#/components/schemas/JobSettingsDto"
|
"$ref": "#/components/schemas/JobSettingsDto"
|
||||||
},
|
},
|
||||||
@ -9950,7 +9947,6 @@
|
|||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"backgroundTask",
|
"backgroundTask",
|
||||||
"duplicateDetection",
|
|
||||||
"faceDetection",
|
"faceDetection",
|
||||||
"library",
|
"library",
|
||||||
"metadataExtraction",
|
"metadataExtraction",
|
||||||
|
@ -833,7 +833,6 @@ export type JobSettingsDto = {
|
|||||||
};
|
};
|
||||||
export type SystemConfigJobDto = {
|
export type SystemConfigJobDto = {
|
||||||
backgroundTask: JobSettingsDto;
|
backgroundTask: JobSettingsDto;
|
||||||
duplicateDetection: JobSettingsDto;
|
|
||||||
faceDetection: JobSettingsDto;
|
faceDetection: JobSettingsDto;
|
||||||
library: JobSettingsDto;
|
library: JobSettingsDto;
|
||||||
metadataExtraction: JobSettingsDto;
|
metadataExtraction: JobSettingsDto;
|
||||||
|
@ -55,7 +55,6 @@ export const defaults = Object.freeze<SystemConfig>({
|
|||||||
[QueueName.METADATA_EXTRACTION]: { concurrency: 5 },
|
[QueueName.METADATA_EXTRACTION]: { concurrency: 5 },
|
||||||
[QueueName.FACE_DETECTION]: { concurrency: 2 },
|
[QueueName.FACE_DETECTION]: { concurrency: 2 },
|
||||||
[QueueName.SEARCH]: { concurrency: 5 },
|
[QueueName.SEARCH]: { concurrency: 5 },
|
||||||
[QueueName.DUPLICATE_DETECTION]: { concurrency: 5 },
|
|
||||||
[QueueName.SIDECAR]: { concurrency: 5 },
|
[QueueName.SIDECAR]: { concurrency: 5 },
|
||||||
[QueueName.LIBRARY]: { concurrency: 5 },
|
[QueueName.LIBRARY]: { concurrency: 5 },
|
||||||
[QueueName.MIGRATION]: { concurrency: 5 },
|
[QueueName.MIGRATION]: { concurrency: 5 },
|
||||||
|
@ -184,12 +184,6 @@ class SystemConfigJobDto implements Record<ConcurrentQueueName, JobSettingsDto>
|
|||||||
@Type(() => JobSettingsDto)
|
@Type(() => JobSettingsDto)
|
||||||
[QueueName.SEARCH]!: JobSettingsDto;
|
[QueueName.SEARCH]!: JobSettingsDto;
|
||||||
|
|
||||||
@ApiProperty({ type: JobSettingsDto })
|
|
||||||
@ValidateNested()
|
|
||||||
@IsObject()
|
|
||||||
@Type(() => JobSettingsDto)
|
|
||||||
[QueueName.DUPLICATE_DETECTION]!: JobSettingsDto;
|
|
||||||
|
|
||||||
@ApiProperty({ type: JobSettingsDto })
|
@ApiProperty({ type: JobSettingsDto })
|
||||||
@ValidateNested()
|
@ValidateNested()
|
||||||
@IsObject()
|
@IsObject()
|
||||||
|
@ -40,7 +40,6 @@ export enum SystemConfigKey {
|
|||||||
JOB_VIDEO_CONVERSION_CONCURRENCY = 'job.videoConversion.concurrency',
|
JOB_VIDEO_CONVERSION_CONCURRENCY = 'job.videoConversion.concurrency',
|
||||||
JOB_FACE_DETECTION_CONCURRENCY = 'job.faceDetection.concurrency',
|
JOB_FACE_DETECTION_CONCURRENCY = 'job.faceDetection.concurrency',
|
||||||
JOB_SMART_SEARCH_CONCURRENCY = 'job.smartSearch.concurrency',
|
JOB_SMART_SEARCH_CONCURRENCY = 'job.smartSearch.concurrency',
|
||||||
JOB_DUPLICATE_DETECTION_CONCURRENCY = 'job.duplicateDetection.concurrency',
|
|
||||||
JOB_BACKGROUND_TASK_CONCURRENCY = 'job.backgroundTask.concurrency',
|
JOB_BACKGROUND_TASK_CONCURRENCY = 'job.backgroundTask.concurrency',
|
||||||
JOB_STORAGE_TEMPLATE_MIGRATION_CONCURRENCY = 'job.storageTemplateMigration.concurrency',
|
JOB_STORAGE_TEMPLATE_MIGRATION_CONCURRENCY = 'job.storageTemplateMigration.concurrency',
|
||||||
JOB_SEARCH_CONCURRENCY = 'job.search.concurrency',
|
JOB_SEARCH_CONCURRENCY = 'job.search.concurrency',
|
||||||
|
@ -16,7 +16,7 @@ export enum QueueName {
|
|||||||
|
|
||||||
export type ConcurrentQueueName = Exclude<
|
export type ConcurrentQueueName = Exclude<
|
||||||
QueueName,
|
QueueName,
|
||||||
QueueName.STORAGE_TEMPLATE_MIGRATION | QueueName.FACIAL_RECOGNITION
|
QueueName.STORAGE_TEMPLATE_MIGRATION | QueueName.FACIAL_RECOGNITION | QueueName.DUPLICATE_DETECTION
|
||||||
>;
|
>;
|
||||||
|
|
||||||
export enum JobCommand {
|
export enum JobCommand {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user