mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(core): Handle cancellation of waiting executions correctly (#13051)
This commit is contained in:
committed by
GitHub
parent
be39d0a0f1
commit
fc440eb68b
@@ -11,7 +11,6 @@ import config from '@/config';
|
||||
import type { ExecutionRepository } from '@/databases/repositories/execution.repository';
|
||||
import { InvalidConcurrencyLimitError } from '@/errors/invalid-concurrency-limit.error';
|
||||
import type { EventService } from '@/events/event.service';
|
||||
import type { IExecutingWorkflowData } from '@/interfaces';
|
||||
import type { Telemetry } from '@/telemetry';
|
||||
import { mockLogger } from '@test/mocking';
|
||||
|
||||
@@ -432,11 +431,7 @@ describe('ConcurrencyControlService', () => {
|
||||
/**
|
||||
* Act
|
||||
*/
|
||||
await service.removeAll({
|
||||
'1': mock<IExecutingWorkflowData>(),
|
||||
'2': mock<IExecutingWorkflowData>(),
|
||||
'3': mock<IExecutingWorkflowData>(),
|
||||
});
|
||||
await service.removeAll(['1', '2', '3']);
|
||||
|
||||
/**
|
||||
* Assert
|
||||
|
||||
Reference in New Issue
Block a user