fix(core): Stopping an execution should reject any response promises (#9992)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-07-16 19:25:20 +02:00
committed by GitHub
parent 5e57b0d71e
commit 36b314d031
9 changed files with 55 additions and 23 deletions

View File

@@ -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 });