Registry / devops / node-red-contrib-exec-queue

node-red-contrib-exec-queue

JSON →
library1.0.28jsnpmunverified

A Node-RED alternative exec node that runs template code with a queue. Version 1.0.28. This node allows executing any command-line program (bash, Node.js, Python, etc.) from Node-RED, queuing executions to avoid overwhelming the system. Key differentiators: built-in queue, template-based code editing, and support for multiple programming languages. Does not work on Windows, has performance limitations with high message rates. Stable release with no recent updates.

npm install node-red-contrib-exec-queue
INSTALL
IMPORT
SIG · NODE-RED-CONTRIB-E
N
node-red-contrib-exec-queue
devopsjavascriptv1.0.28
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

exec queue
Add the node from the Node-RED palette (node-red-contrib-exec-queue is installed as a npm package)
Importing as a JavaScript module in Node-RED function nodes
This is a Node-RED custom node, not a library to be imported in code. It appears in the palette as 'exec queue' under the 'advanced' category.
ExecQueue
N/A - No programmatic API, only Node-RED node
No JavaScript API is exported; the package is used solely via Node-RED's flow editor.

Shows how to install and use the node in Node-RED to execute Node.js code via 'node $file' command.

// This node is used via Node-RED's flow editor. // 1. Install: npm install node-red-contrib-exec-queue // 2. Restart Node-RED // 3. Add an 'exec queue' node from the palette // 4. In the node config, set Command to "node $file" // 5. Write Node.js code in the template editor // 6. Deploy and inject a msg to execute the code // Example flow JSON: [{"id":"1fe0aad8f59279e6","type":"exec queue","name":"node.js code","command":"node $file","debugMode":false,"outputs":1,"useSpawn":"false","field":"payload","x":450,"y":320,"wires":[["node-id"]]}]
Debug
Known issues
gotchaDoes not work on Windows - Linux only.
fix
Use WSL or a Linux VM/machine.
affects: *
gotchaPerformance: Slow for high message rates (e.g., ~2 minutes for 10k simple executions).
fix
Avoid using for high-throughput scenarios; batch messages or use alternative node if performance critical.
affects: <=1.0.28
gotchaSpawn mode (useSpawn) may cause unexpected behavior if not used correctly.
fix
Set 'useSpawn' to true only if you need to run a long-lived process; otherwise keep as false.
affects: *
Errors
Common errors & fixes
Error: spawn ENOENT
Command not found or path incorrect.
fix
Ensure the command (e.g., 'python3') is installed and accessible in the system PATH.
TypeError: Cannot read properties of undefined (reading 'length')
Missing or malformed msg.payload when node expects a string.
fix
Ensure incoming msg.payload is a string containing the code to execute.
Error: exec queue node is not defined
Node not installed or not restarted after install.
fix
Run 'npm install node-red-contrib-exec-queue' in your Node-RED user directory and restart Node-RED.
Upgrade
Version history
1.0.28latest on npm
Audit
Dependencies
node-redoptionalRequires Node-RED runtime to be installed
Agent activity
4 hits · last 30 days
node
4
Resources
node-red-contrib-exec-queue — npm install node-red-contrib-exec-queue · libregistry