mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 21:07:28 -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>
|
<script lang="ts" setup>
|
||||||
import { computed } from 'vue';
|
import { computed } from 'vue';
|
||||||
import { useI18n } from '@/composables/useI18n';
|
import { useI18n } from '@/composables/useI18n';
|
||||||
|
import { WORKFLOW_EVALUATION_EXPERIMENT } from '@/constants';
|
||||||
|
import { usePostHog } from '@/stores/posthog.store';
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
runningExecutionsCount: number;
|
runningExecutionsCount: number;
|
||||||
|
@ -14,14 +16,22 @@ const emit = defineEmits<{
|
||||||
|
|
||||||
const i18n = useI18n();
|
const i18n = useI18n();
|
||||||
|
|
||||||
const tooltipText = computed(() =>
|
const posthogStore = usePostHog();
|
||||||
i18n.baseText('executionsList.activeExecutions.tooltip', {
|
|
||||||
|
const tooltipText = computed(() => {
|
||||||
|
let text = i18n.baseText('executionsList.activeExecutions.tooltip', {
|
||||||
interpolate: {
|
interpolate: {
|
||||||
running: props.runningExecutionsCount,
|
running: props.runningExecutionsCount,
|
||||||
cap: props.concurrencyCap,
|
cap: props.concurrencyCap,
|
||||||
},
|
},
|
||||||
}),
|
});
|
||||||
);
|
|
||||||
|
if (posthogStore.isFeatureEnabled(WORKFLOW_EVALUATION_EXPERIMENT)) {
|
||||||
|
text += '\n' + i18n.baseText('executionsList.activeExecutions.evaluationNote');
|
||||||
|
}
|
||||||
|
|
||||||
|
return text;
|
||||||
|
});
|
||||||
|
|
||||||
const headerText = computed(() => {
|
const headerText = computed(() => {
|
||||||
if (props.runningExecutionsCount === 0) {
|
if (props.runningExecutionsCount === 0) {
|
||||||
|
@ -38,6 +48,7 @@ const headerText = computed(() => {
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div data-test-id="concurrent-executions-header">
|
<div data-test-id="concurrent-executions-header">
|
||||||
|
<n8n-text>{{ headerText }}</n8n-text>
|
||||||
<n8n-tooltip>
|
<n8n-tooltip>
|
||||||
<template #content>
|
<template #content>
|
||||||
<div :class="$style.tooltip">
|
<div :class="$style.tooltip">
|
||||||
|
@ -60,9 +71,8 @@ const headerText = computed(() => {
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<font-awesome-icon icon="info-circle" class="mr-2xs" />
|
<font-awesome-icon icon="info-circle" class="ml-2xs" />
|
||||||
</n8n-tooltip>
|
</n8n-tooltip>
|
||||||
<n8n-text>{{ headerText }}</n8n-text>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -712,6 +712,7 @@
|
||||||
"executionsList.activeExecutions.none": "No active executions",
|
"executionsList.activeExecutions.none": "No active executions",
|
||||||
"executionsList.activeExecutions.header": "{running}/{cap} 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.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.allWorkflows": "All Workflows",
|
||||||
"executionsList.anyStatus": "Any Status",
|
"executionsList.anyStatus": "Any Status",
|
||||||
"executionsList.autoRefresh": "Auto refresh",
|
"executionsList.autoRefresh": "Auto refresh",
|
||||||
|
|
Loading…
Reference in a new issue