chore: Add multi-main mode to debug info (#14835)

This commit is contained in:
Iván Ovejero
2025-04-25 09:40:45 +02:00
committed by GitHub
parent 91069f057e
commit 4bb165398c
5 changed files with 12 additions and 2 deletions

View File

@@ -105,6 +105,8 @@ export interface FrontendSettings {
};
missingPackages?: boolean;
executionMode: 'regular' | 'queue';
/** Whether multi-main mode is enabled and licensed for this main instance. */
isMultiMain: boolean;
pushBackend: 'sse' | 'websocket';
communityNodesEnabled: boolean;
aiAssistant: {

View File

@@ -173,6 +173,7 @@ export class FrontendService {
host: this.globalConfig.templates.host,
},
executionMode: config.getEnv('executions.mode'),
isMultiMain: this.instanceSettings.isMultiMain,
pushBackend: this.pushConfig.backend,
communityNodesEnabled: this.globalConfig.nodes.communityPackages.enabled,
deployment: {

View File

@@ -47,6 +47,7 @@ export const defaultSettings: FrontendSettings = {
evaluator: 'tournament',
},
executionMode: 'regular',
isMultiMain: false,
executionTimeout: 0,
hideUsagePage: false,
hiringBannerEnabled: false,

View File

@@ -9,7 +9,7 @@ type DebugInfo = {
platform: 'docker (cloud)' | 'docker (self-hosted)' | 'npm';
nodeJsVersion: string;
database: 'sqlite' | 'mysql' | 'mariadb' | 'postgres';
executionMode: 'regular' | 'scaling';
executionMode: 'regular' | 'scaling (single-main)' | 'scaling (multi-main)';
license: 'community' | 'enterprise (production)' | 'enterprise (sandbox)';
consumerId?: string;
concurrency: number;
@@ -64,7 +64,11 @@ export function useDebugInfo() {
: settingsStore.databaseType === 'mysqldb'
? 'mysql'
: settingsStore.databaseType,
executionMode: settingsStore.isQueueModeEnabled ? 'scaling' : 'regular',
executionMode: settingsStore.isQueueModeEnabled
? settingsStore.isMultiMain
? 'scaling (multi-main)'
: 'scaling (single-main)'
: 'regular',
concurrency: settingsStore.settings.concurrency,
license:
settingsStore.isCommunityPlan || !settingsStore.settings.license

View File

@@ -160,6 +160,7 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
const allowedModules = computed(() => settings.value.allowedModules);
const isQueueModeEnabled = computed(() => settings.value.executionMode === 'queue');
const isMultiMain = computed(() => settings.value.isMultiMain);
const isWorkerViewAvailable = computed(() => !!settings.value.enterprise?.workerView);
@@ -425,6 +426,7 @@ export const useSettingsStore = defineStore(STORES.SETTINGS, () => {
isCommunityNodesFeatureEnabled,
allowedModules,
isQueueModeEnabled,
isMultiMain,
isWorkerViewAvailable,
isDefaultAuthenticationSaml,
workflowCallerPolicyDefaultOption,