mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
refactor: Replace Pyodide with native Python with env flag is enabled (#19403)
This commit is contained in:
@@ -132,7 +132,8 @@ export class FrontendService {
|
||||
versionCli: N8N_VERSION,
|
||||
concurrency: this.globalConfig.executions.concurrency.productionLimit,
|
||||
isNativePythonRunnerEnabled:
|
||||
this.globalConfig.taskRunners.enabled && process.env.N8N_NATIVE_PYTHON_RUNNER === 'true',
|
||||
this.globalConfig.taskRunners.enabled &&
|
||||
this.globalConfig.taskRunners.isNativePythonRunnerEnabled,
|
||||
authCookie: {
|
||||
secure: this.globalConfig.auth.cookie.secure,
|
||||
},
|
||||
|
||||
@@ -118,7 +118,7 @@ export class TaskRunnerModule {
|
||||
|
||||
await this.jsRunnerProcess.start();
|
||||
|
||||
if (process.env.N8N_NATIVE_PYTHON_RUNNER === 'true') {
|
||||
if (this.runnerConfig.isNativePythonRunnerEnabled) {
|
||||
const { PyTaskRunnerProcess } = await import('@/task-runners/task-runner-process-py');
|
||||
this.pyRunnerProcess = Container.get(PyTaskRunnerProcess);
|
||||
this.pyRunnerProcessRestartLoopDetector = new TaskRunnerProcessRestartLoopDetector(
|
||||
|
||||
Reference in New Issue
Block a user