fix(core): Fix stopping and retrying failed executions (#8480)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user