diff --git a/packages/cli/commands/execute.ts b/packages/cli/commands/execute.ts index b6641628df..b74eb7397d 100644 --- a/packages/cli/commands/execute.ts +++ b/packages/cli/commands/execute.ts @@ -11,6 +11,7 @@ import { CredentialTypes, Db, ExternalHooks, + InternalHooksManager, IWorkflowBase, IWorkflowExecutionDataProcess, LoadNodesAndCredentials, @@ -123,6 +124,9 @@ export class Execute extends Command { const externalHooks = ExternalHooks(); await externalHooks.init(); + const instanceId = await UserSettings.getInstanceId(); + InternalHooksManager.init(instanceId); + // Add the found types to an instance other parts of the application can use const nodeTypes = NodeTypes(); await nodeTypes.init(loadNodesAndCredentials.nodeTypes); diff --git a/packages/cli/commands/executeBatch.ts b/packages/cli/commands/executeBatch.ts index d4489c38d4..4834e69d65 100644 --- a/packages/cli/commands/executeBatch.ts +++ b/packages/cli/commands/executeBatch.ts @@ -28,6 +28,7 @@ import { CredentialTypes, Db, ExternalHooks, + InternalHooksManager, IWorkflowDb, IWorkflowExecutionDataProcess, LoadNodesAndCredentials, @@ -55,12 +56,12 @@ export class ExecuteBatch extends Command { static executionTimeout = 3 * 60 * 1000; static examples = [ - `$ n8n executeAll`, - `$ n8n executeAll --concurrency=10 --skipList=/data/skipList.txt`, - `$ n8n executeAll --debug --output=/data/output.json`, - `$ n8n executeAll --ids=10,13,15 --shortOutput`, - `$ n8n executeAll --snapshot=/data/snapshots --shallow`, - `$ n8n executeAll --compare=/data/previousExecutionData --retries=2`, + `$ n8n executeBatch`, + `$ n8n executeBatch --concurrency=10 --skipList=/data/skipList.txt`, + `$ n8n executeBatch --debug --output=/data/output.json`, + `$ n8n executeBatch --ids=10,13,15 --shortOutput`, + `$ n8n executeBatch --snapshot=/data/snapshots --shallow`, + `$ n8n executeBatch --compare=/data/previousExecutionData --retries=2`, ]; static flags = { @@ -303,6 +304,9 @@ export class ExecuteBatch extends Command { const externalHooks = ExternalHooks(); await externalHooks.init(); + const instanceId = await UserSettings.getInstanceId(); + InternalHooksManager.init(instanceId); + // Add the found types to an instance other parts of the application can use const nodeTypes = NodeTypes(); await nodeTypes.init(loadNodesAndCredentials.nodeTypes);