Skip to content

Nodes and Executors

Overview

Flowctl allows you to execute workflows both locally and on remote nodes.

Executors

Executors define how your actions run. Flowctl provides three built-in executors:

Docker Executor

The Docker executor runs your scripts inside Docker containers.

Configuration:

- id: build_app
  name: Build Application
  executor: docker
  variables:
    - version: "{{ inputs.version }}"
  with:
    image: docker.io/node:18
    script: |
      npm install
      npm run build
      echo "BUILD_ID=$(date +%s)" >> $FC_OUTPUT

Config:

  • image: Docker image
  • script: Bash script to execute inside the container

Script Executor

The Script executor runs shell scripts directly on the host system (local or remote).

Configuration:

- id: deploy
  name: Deploy Application
  executor: script
  variables:
    - app_name: "{{ inputs.app_name }}"
  with:
    script: |
      cd /opt/$app_name
      git pull origin main
      systemctl restart $app_name
      echo "DEPLOYED_AT=$(date -Iseconds)" >> $FC_OUTPUT
    interpreter: /bin/bash # Optional, defaults to /bin/bash

Key Features:

  • script: Script to execute. Could be anything the interpreter can execute.
  • interpreter: Path to interpreter

Warning

Script executor actions run with the permissions of the flowctl process on local nodes and the user configured on remote nodes. Ensure proper security measures are in place.

Flow Executor

The Flow executor triggers another flow as a child execution. Use it to compose workflows.

Configuration:

- id: run_tests
  name: Run Test Suite
  executor: flow
  with:
    flow_id: my-test-flow
    params: '{"env": "staging"}'
    wait: true

Config:

  • flow_id (required): ID of the flow to trigger
  • params: JSON string of parameters to pass to the child flow
  • wait: If true, blocks until the child flow completes. Defaults to false

Outputs:

  • exec_id: Execution ID of the triggered flow
  • status: Final status of the child flow (only when wait: true). One of completed, errored, or cancelled

Note

The flow executor runs on the local node only and cannot be used with remote nodes.

Remote Nodes

A remote node is any server or machine that flowctl can connect to via a remote client (SSH).

Setting Up Remote Nodes

Node Management

Step 1: Create a Credential

Create Credential

Before adding a node, create SSH credentials:

  1. Navigate to Credentials
  2. Click Add Credential
  3. Provide:
  4. Name: Descriptive name (e.g., "Production Server SSH Key")
  5. Type: private_key or password
  6. Key Data: SSH private key or password

List Credential

Step 2: Add a Node

  1. Navigate to Nodes
  2. Click Add Node
  3. Configure the node:

Add Node

Fields:

  • Name: Unique identifier within the namespace, using alphanumeric characters and underscores (up to 50 characters). local, uploads, and global are reserved.
  • Hostname: IP address or domain name
  • Port: SSH port (default: 22)
  • Username: SSH username
  • Connection Type: ssh or qssh (QUIC-based SSH)
  • Credential: SSH authentication credential
  • Tags: Optional labels for organization

Step 3: Bulk Import Nodes from CSV (Optional)

To add multiple nodes at once, use the Import button on the Nodes page.

  1. Navigate to Nodes
  2. Click Import
  3. Select a CSV file with a credential name for each node
  4. Click Import

Use Download CSV Template in the modal to get a ready-to-fill template.

CSV format:

name,hostname,port,username,connection_type,credential,tags
web_server_01,192.168.1.10,22,ubuntu,ssh,web_ssh_key,"production,web"
db_server_01,192.168.1.20,22,admin,ssh,db_password,"production,database"

Column rules:

  • name: Unique within the namespace, alphanumeric and underscores only, max 50 characters. local, uploads, and global are reserved.
  • hostname: Valid IP address or hostname
  • port: 1–65535
  • username: 2–50 characters
  • connection_type: ssh or qssh
  • credential: Required, exact name of an existing credential in the current namespace. Different rows can use different credentials; the authentication method is taken from the credential.
  • tags: Comma-separated; each tag may contain only alphanumeric characters and underscores. Wrap in quotes if multiple (e.g. "web,prod").

Rows with missing or unknown credentials, or other validation errors, are reported individually — valid rows in the same file are still imported. Empty files, invalid headers, and files with no data rows are rejected. CSV UTF-8 files exported from Excel are supported.

Existing nodes are not updated. A duplicate name is reported as a row error, so remove successfully imported rows before retrying a partially imported file.

The default CSV size limit is 1 MiB (1048576 bytes). Change app.max_node_import_size in config.toml to adjust it.

Using Remote Nodes in Flows

Execute actions on remote nodes using the on field. You can specify node names directly or use tags to target multiple nodes.

By Node Name

actions:
  - id: remote_deploy
    name: Deploy to Production
    executor: script
    on:
      - WebServer1
      - WebServer2

By Tag

Use the tag: prefix to run on all nodes with a specific tag:

actions:
  - id: deploy_to_dev
    name: Deploy to Dev Servers
    executor: script
    on:
      - tag:dev

You can mix node names and tags:

on:
  - WebServer1
  - tag:backend

Node Selector

In the UI, type tag: followed by the tag name to search by tag. You can either select the tag itself (targets all nodes with that tag) or pick individual nodes from the results.

Key Points:

  • Actions run on all specified nodes in parallel
  • Each node receives the same inputs and variables
  • Outputs are collected from all nodes
  • If any node action fails, the entire flow will fail
  • When using tags, nodes are resolved at execution time. Add/remove nodes from a tag without updating flows

Next Steps