-
Notifications
You must be signed in to change notification settings - Fork 33.7k
perf(core): Don't load task-runner on main instances when manual executions are offloaded to workers #15986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf(core): Don't load task-runner on main instances when manual executions are offloaded to workers #15986
Conversation
…tions are offloaded to workers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic reviewed 1 file and found no issues. Review PR in cubic.dev.
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
if (process.env.OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS === 'true') { | ||
this.needsTaskRunner = false; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should add a test for this? There's a very similar one at packages/cli/src/commands/__tests__/execute.test.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gave it a try but as usual commands are painful to test, so this little change is not worth the time. Let's disentangle this command some other time.
✅ All Cypress E2E specs passed |
Got released with |
…tions are offloaded to workers (n8n-io#15986)
Summary
When manual executions offloading is enabled, there are no executions on main instances, and therefore there is no need to be running a task-runner subprocess.
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)