mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
chore: Add multi-main mode to debug info (#14835)
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -47,6 +47,7 @@ export const defaultSettings: FrontendSettings = {
|
||||
evaluator: 'tournament',
|
||||
},
|
||||
executionMode: 'regular',
|
||||
isMultiMain: false,
|
||||
executionTimeout: 0,
|
||||
hideUsagePage: false,
|
||||
hiringBannerEnabled: false,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user