Skip to content

Commit

Permalink
Merge branch 'pay-1233-create-executions-store-for-state-management' of
Browse files Browse the repository at this point in the history
https://github.com/n8n-io/n8n into pay-1233-create-executions-store-for-state-management
  • Loading branch information
cstuncsik committed Apr 12, 2024
2 parents 7fbabc1 + f6d37c7 commit 2bb3f5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/executions/execution.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export class ExecutionService {
* from the total and count for pagination purposes.
*/
async findAllActiveAndLatestFinished(query: ExecutionSummaries.RangeQuery) {
const active: ExecutionStatus[] = ['new', 'running', 'waiting'];
const active: ExecutionStatus[] = ['new', 'running'];
const finished: ExecutionStatus[] = ['success', 'error', 'canceled'];

const [activeResult, finishedResult] = await Promise.all([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,9 @@ describe('ExecutionService', () => {
const totalFinished = 21;

await Promise.all([
createExecution({ status: 'waiting' }, workflow),
createExecution({ status: 'waiting' }, workflow),
createExecution({ status: 'waiting' }, workflow),
createExecution({ status: 'running' }, workflow),
createExecution({ status: 'running' }, workflow),
createExecution({ status: 'running' }, workflow),
...new Array(totalFinished)
.fill(null)
.map(async () => await createExecution({ status: 'success' }, workflow)),
Expand Down Expand Up @@ -374,9 +374,9 @@ describe('ExecutionService', () => {
const workflow = await createWorkflow();

await Promise.all([
createExecution({ status: 'waiting' }, workflow),
createExecution({ status: 'waiting' }, workflow),
createExecution({ status: 'waiting' }, workflow),
createExecution({ status: 'running' }, workflow),
createExecution({ status: 'running' }, workflow),
createExecution({ status: 'running' }, workflow),
]);

const query: ExecutionSummaries.RangeQuery = {
Expand Down

0 comments on commit 2bb3f5c

Please sign in to comment.