mirror of
https://github.com/immich-app/immich.git
synced 2026-05-18 03:10:24 +03:00
test: add new queue name
This commit is contained in:
@@ -23,7 +23,7 @@ describe(QueueService.name, () => {
|
|||||||
it('should update concurrency', () => {
|
it('should update concurrency', () => {
|
||||||
sut.onConfigUpdate({ newConfig: defaults, oldConfig: {} as SystemConfig });
|
sut.onConfigUpdate({ newConfig: defaults, oldConfig: {} as SystemConfig });
|
||||||
|
|
||||||
expect(mocks.job.setConcurrency).toHaveBeenCalledTimes(17);
|
expect(mocks.job.setConcurrency).toHaveBeenCalledTimes(18);
|
||||||
expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(5, QueueName.FacialRecognition, 1);
|
expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(5, QueueName.FacialRecognition, 1);
|
||||||
expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(7, QueueName.DuplicateDetection, 1);
|
expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(7, QueueName.DuplicateDetection, 1);
|
||||||
expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(8, QueueName.BackgroundTask, 5);
|
expect(mocks.job.setConcurrency).toHaveBeenNthCalledWith(8, QueueName.BackgroundTask, 5);
|
||||||
@@ -77,6 +77,7 @@ describe(QueueService.name, () => {
|
|||||||
[QueueName.BackupDatabase]: expected,
|
[QueueName.BackupDatabase]: expected,
|
||||||
[QueueName.Ocr]: expected,
|
[QueueName.Ocr]: expected,
|
||||||
[QueueName.Workflow]: expected,
|
[QueueName.Workflow]: expected,
|
||||||
|
[QueueName.IntegrityCheck]: expected,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -41,6 +41,7 @@ const updatedConfig = Object.freeze<SystemConfig>({
|
|||||||
[QueueName.Notification]: { concurrency: 5 },
|
[QueueName.Notification]: { concurrency: 5 },
|
||||||
[QueueName.Ocr]: { concurrency: 1 },
|
[QueueName.Ocr]: { concurrency: 1 },
|
||||||
[QueueName.Workflow]: { concurrency: 5 },
|
[QueueName.Workflow]: { concurrency: 5 },
|
||||||
|
[QueueName.IntegrityCheck]: { concurrency: 1 },
|
||||||
},
|
},
|
||||||
backup: {
|
backup: {
|
||||||
database: {
|
database: {
|
||||||
|
|||||||
Reference in New Issue
Block a user