diff --git a/packages/cli/src/Server.ts b/packages/cli/src/Server.ts index aed8de09a0..4b4e376a83 100644 --- a/packages/cli/src/Server.ts +++ b/packages/cli/src/Server.ts @@ -1647,6 +1647,10 @@ class App { const currentlyRunningExecutionIds = currentJobs.map(job => job.data.executionId); + if (currentlyRunningExecutionIds.length === 0) { + return []; + } + const resultsQuery = await Db.collections.Execution! .createQueryBuilder("execution") .select([