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

@@ -649,6 +649,16 @@ export class ExecutionRepository extends Repository<ExecutionEntity> {
});
}
async findWithUnflattenedData(executionId: string, accessibleWorkflowIds: string[]) {
return await this.findSingleExecution(executionId, {
where: {
workflowId: In(accessibleWorkflowIds),
},
includeData: true,
unflattenData: true,
});
}
async findIfShared(executionId: string, sharedWorkflowIds: string[]) {
return await this.findSingleExecution(executionId, {
where: {