mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
feat(core): Enable task runner by default (#12726)
This commit is contained in:
@@ -10,9 +10,8 @@ export type TaskRunnerMode = 'internal' | 'external';
|
|||||||
@Config
|
@Config
|
||||||
export class TaskRunnersConfig {
|
export class TaskRunnersConfig {
|
||||||
@Env('N8N_RUNNERS_ENABLED')
|
@Env('N8N_RUNNERS_ENABLED')
|
||||||
enabled: boolean = false;
|
enabled: boolean = true;
|
||||||
|
|
||||||
// Defaults to true for now
|
|
||||||
@Env('N8N_RUNNERS_MODE')
|
@Env('N8N_RUNNERS_MODE')
|
||||||
mode: TaskRunnerMode = 'internal';
|
mode: TaskRunnerMode = 'internal';
|
||||||
|
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ describe('GlobalConfig', () => {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
taskRunners: {
|
taskRunners: {
|
||||||
enabled: false,
|
enabled: true,
|
||||||
mode: 'internal',
|
mode: 'internal',
|
||||||
path: '/runners',
|
path: '/runners',
|
||||||
authToken: '',
|
authToken: '',
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ export class TaskRunnerProcess extends TypedEmitter<TaskRunnerProcessEventMap> {
|
|||||||
|
|
||||||
private readonly passthroughEnvVars = [
|
private readonly passthroughEnvVars = [
|
||||||
'PATH',
|
'PATH',
|
||||||
|
'HOME', // So home directory can be resolved correctly
|
||||||
'GENERIC_TIMEZONE',
|
'GENERIC_TIMEZONE',
|
||||||
'NODE_FUNCTION_ALLOW_BUILTIN',
|
'NODE_FUNCTION_ALLOW_BUILTIN',
|
||||||
'NODE_FUNCTION_ALLOW_EXTERNAL',
|
'NODE_FUNCTION_ALLOW_EXTERNAL',
|
||||||
|
|||||||
Reference in New Issue
Block a user