feat(core): Enable task runner by default (#12726)

This commit is contained in:
Tomi Turtiainen
2025-01-21 14:31:06 +02:00
committed by GitHub
parent 353df79411
commit 9e2a01aeaf
3 changed files with 3 additions and 3 deletions

View File

@@ -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';

View File

@@ -221,7 +221,7 @@ describe('GlobalConfig', () => {
}, },
}, },
taskRunners: { taskRunners: {
enabled: false, enabled: true,
mode: 'internal', mode: 'internal',
path: '/runners', path: '/runners',
authToken: '', authToken: '',

View File

@@ -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',