mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
feat(core): Enable task runner by default (#12726)
This commit is contained in:
parent
353df79411
commit
9e2a01aeaf
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue