Code Executor
Category: Transform Standards: Code review required
Execute custom Python/JavaScript code
What this node does
- Python/JavaScript
- Sandboxed execution
- Package support
- Async
How to use
- In the Hydra Builder, open or create a workflow
- In the node palette on the left, find Code Executor under the Transform category (or use the search bar)
- Drag the node onto the canvas
- Double-click the node to open its configuration dialog
- Fill in the required parameters (see Configuration below)
- Connect the Input Data input port from an upstream node
- Connect the Execution Result output to the next node downstream
Inputs
| Port | Type | Required | Description |
|---|---|---|---|
| Input Data | any | ✓ | any data |
Outputs
| Port | Type | Description |
|---|---|---|
| Execution Result | any | any data |
Configuration
Open the configuration dialog by double-clicking the Code Executor node on the canvas.
| Parameter | What to enter |
|---|---|
language | Configure language in the node settings |
code | Configure code in the node settings |
packages | Configure packages in the node settings |
timeout | Maximum time in seconds to wait for a response before failing |
When to use this node
- Custom transformations
- Complex logic
- Data processing
Need help configuring this node?
Go to Settings → Connectors to set up the connection this node depends on, then reference the connector ID in the node configuration dialog.