Skip to content

Commit

Permalink
wip: Exclude evaluation executions from counting towards limit in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
burivuhster committed Dec 27, 2024
1 parent 51a70ef commit 7340fa7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ const isAnnotationEnabled = computed(
);
const runningExecutionsCount = computed(() => {
return props.executions.filter((execution) => execution.status === 'running').length;
return props.executions.filter(
(execution) =>
execution.status === 'running' && ['webhook', 'trigger'].includes(execution.mode),
).length;
});
watch(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ const executionListRef = ref<HTMLElement | null>(null);
const workflowPermissions = computed(() => getResourcePermissions(props.workflow?.scopes).workflow);
const runningExecutionsCount = computed(() => {
return props.executions.filter((execution) => execution.status === 'running').length;
return props.executions.filter(
(execution) =>
execution.status === 'running' && ['webhook', 'trigger'].includes(execution.mode),
).length;
});
watch(
Expand Down

0 comments on commit 7340fa7

Please sign in to comment.