fix(core): Fix stopping and retrying failed executions (#8480)

This commit is contained in:
Iván Ovejero
2024-01-29 16:34:58 +01:00
committed by GitHub
parent 981ea3930e
commit 238b54c77b
3 changed files with 13 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ export class ActiveExecutionService {
};
}
if (!this.isRegularMode) return await this.waitTracker.stopExecution(execution.id);
if (this.isRegularMode) return await this.waitTracker.stopExecution(execution.id);
// queue mode

View File

@@ -179,10 +179,10 @@ export class ExecutionService {
async retry(req: ExecutionRequest.Retry, sharedWorkflowIds: string[]) {
const { id: executionId } = req.params;
const execution = (await this.executionRepository.findIfShared(
const execution = await this.executionRepository.findWithUnflattenedData(
executionId,
sharedWorkflowIds,
)) as unknown as IExecutionResponse;
);
if (!execution) {
this.logger.info(