As of 1.71.0, we’re excited to announce that Task runners for the Code node has entered public beta on self-hosted instances. This is a significant upgrade that fundamentally changes how JavaScript code executes in n8n, bringing major performance improvements and enhanced isolation.
What’s New?
- Performance Boost: Our benchmarks show up to 6x improvement in workflow executions using Code nodes (from ~6 to ~35 executions per second)
- Better process isolation: Code execution now happens in a separate process
- Zero learning curve: All improvements happen under the hood - your Code node experience remains exactly the same
How Does It Work?
Task Runners move JavaScript code execution to a separate process, preventing Code node operations from blocking your entire n8n instance. We offer two modes:
- Internal Mode (default): Perfect for getting started, automatically manages task runners as child processes
- External Mode: For advanced hosting scenarios requiring maximum isolation and security
Getting Started
Task Runners are currently opt-in. To try it out:
- Make sure you’re on 1.71.0 or later
- Enable the feature using environment variables
- Check out our detailed documentation for setup instructions
Why are we introducing Task Runners?
- Performance: Significantly improves workflow execution speed
- Resource management: Better handling of system resources with isolated processes
- Enterprise ready: Enhanced security and isolation for business-critical workflows
How to provide feedback
We’re actively collecting feedback and bug reports. Before posting:
- Check existing issues to avoid duplicates
- If you encounter any problems, please include:
- Your n8n version
- Environment configuration (excluding sensitive data)
- Steps to reproduce the issue
What’s Next?
Once the beta period concludes successfully, Task runners will become the default execution method for Code nodes. We’ll continue monitoring performance and stability to ensure a smooth transition.
Thank you for helping us test and improve Task Runners! Your feedback is crucial in making n8n better for everyone.