wip: added a note about evaluation executions concurrency limit

This commit is contained in:
Eugene Molodkin 2025-01-08 13:10:44 +01:00
parent b5625a07e2
commit ac54d349e9
No known key found for this signature in database
2 changed files with 17 additions and 6 deletions

View file

@ -1,6 +1,8 @@
<script lang="ts" setup>
import { computed } from 'vue';
import { useI18n } from '@/composables/useI18n';
import { WORKFLOW_EVALUATION_EXPERIMENT } from '@/constants';
import { usePostHog } from '@/stores/posthog.store';
const props = defineProps<{
runningExecutionsCount: number;
@ -14,14 +16,22 @@ const emit = defineEmits<{
const i18n = useI18n();
const tooltipText = computed(() =>
i18n.baseText('executionsList.activeExecutions.tooltip', {
const posthogStore = usePostHog();
const tooltipText = computed(() => {
let text = i18n.baseText('executionsList.activeExecutions.tooltip', {
interpolate: {
running: props.runningExecutionsCount,
cap: props.concurrencyCap,
},
}),
);
});
if (posthogStore.isFeatureEnabled(WORKFLOW_EVALUATION_EXPERIMENT)) {
text += '\n' + i18n.baseText('executionsList.activeExecutions.evaluationNote');
}
return text;
});
const headerText = computed(() => {
if (props.runningExecutionsCount === 0) {
@ -38,6 +48,7 @@ const headerText = computed(() => {
<template>
<div data-test-id="concurrent-executions-header">
<n8n-text>{{ headerText }}</n8n-text>
<n8n-tooltip>
<template #content>
<div :class="$style.tooltip">
@ -60,9 +71,8 @@ const headerText = computed(() => {
>
</div>
</template>
<font-awesome-icon icon="info-circle" class="mr-2xs" />
<font-awesome-icon icon="info-circle" class="ml-2xs" />
</n8n-tooltip>
<n8n-text>{{ headerText }}</n8n-text>
</div>
</template>

View file

@ -712,6 +712,7 @@
"executionsList.activeExecutions.none": "No active executions",
"executionsList.activeExecutions.header": "{running}/{cap} active executions",
"executionsList.activeExecutions.tooltip": "Current active executions: {running} out of {cap}. This instance is limited to {cap} concurrent production executions.",
"executionsList.activeExecutions.evaluationNote": "Evaluation runs appear in the list of executions but do not count towards your execution concurrency.",
"executionsList.allWorkflows": "All Workflows",
"executionsList.anyStatus": "Any Status",
"executionsList.autoRefresh": "Auto refresh",