mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
wip: added a note about evaluation executions concurrency limit
This commit is contained in:
parent
b5625a07e2
commit
ac54d349e9
|
@ -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>
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue