fix(core): Allow all executions to be stopped (#6386)

* allow all executions to be stopped and fix display issue

* limit cancelation and add recover for unknown states
This commit is contained in:
Michael Auerswald
2023-06-08 09:17:59 +02:00
committed by GitHub
parent 28bb797bb0
commit cc44af9243
3 changed files with 25 additions and 6 deletions

View File

@@ -1246,7 +1246,7 @@ export class Server extends AbstractServer {
throw new ResponseHelper.NotFoundError('Execution not found');
}
const execution = await Db.collections.Execution.findOne({
const execution = await Db.collections.Execution.exist({
where: {
id: executionId,
workflowId: In(sharedWorkflowIds),