fix(core): Stopping an execution should reject any response promises (#9992)
This commit is contained in:
committed by
GitHub
parent
5e57b0d71e
commit
36b314d031
@@ -444,11 +444,11 @@ export class ExecutionService {
|
||||
}
|
||||
|
||||
if (this.activeExecutions.has(execution.id)) {
|
||||
await this.activeExecutions.stopExecution(execution.id);
|
||||
this.activeExecutions.stopExecution(execution.id);
|
||||
}
|
||||
|
||||
if (this.waitTracker.has(execution.id)) {
|
||||
await this.waitTracker.stopExecution(execution.id);
|
||||
this.waitTracker.stopExecution(execution.id);
|
||||
}
|
||||
|
||||
return await this.executionRepository.stopDuringRun(execution);
|
||||
@@ -461,11 +461,11 @@ export class ExecutionService {
|
||||
}
|
||||
|
||||
if (this.activeExecutions.has(execution.id)) {
|
||||
await this.activeExecutions.stopExecution(execution.id);
|
||||
this.activeExecutions.stopExecution(execution.id);
|
||||
}
|
||||
|
||||
if (this.waitTracker.has(execution.id)) {
|
||||
await this.waitTracker.stopExecution(execution.id);
|
||||
this.waitTracker.stopExecution(execution.id);
|
||||
}
|
||||
|
||||
const job = await this.queue.findRunningJobBy({ executionId: execution.id });
|
||||
|
||||
Reference in New Issue
Block a user