Skip to main content
Jeremias Meister - Tools & Pipeline

Graph Deployment

Graph deployment allows you to run multiple pipeline graphs simultaneously in isolated environments. This feature enables production-ready automation, scheduled workflows, and scalable pipeline management.

What is Graph Deployment?

When you deploy a graph, Project Succession:

  1. Loads the graph from a file
  2. Creates an isolated execution environment
  3. Starts all triggers and actions
  4. Monitors execution in the background

Why Deploy Graphs?

Use Cases

Production Pipelines

  • Deploy automated workflows that run 24/7
  • Monitor file systems, webhooks, and scheduled tasks

Multiple Projects

  • Run pipelines for different projects and workflow simultaneously
  • Isolate execution environments for different teams

Scheduled Automation

Deployment Dashboard

Choose Deployments in the view navigation to open the deployment dashboard.

The dashboard displays:

  • All deployed graphs
  • Current status (Running, Stopped, Error)
  • Deployment time and last update
  • Active workflow count
  • Health indicators

Deploying a Graph

Method 1: From Work Area

When you have a graph open in the work area:

  1. Click the Execute Graph button in the work area
  2. The graph is saved and deployed immediately
  3. View the graph in the deployment dashboard

Method 2: From Deployment Dashboard

Deploy an existing saved graph:

  1. Open the Deployment Dashboard
  2. Click Deploy New Graph
  3. Select a .json graph file
  4. The graph is loaded and started
  5. Monitor status in the dashboard

Method 3: From Tools

Open a solution in Tools, select a tool, and configure its exposed fields. Save & Deploy saves its values in the .succsln file and deploys the graph with those values. Save changes saves without changing a running deployment. See Solution Tools.

Only one instance of a graph file can be deployed at a time. Deploying it from another solution uses that same instance.

What Happens During Deployment

When you deploy a graph:

  • File is loaded: Graph structure and configuration are read
  • Validation: Nodes and connections are validated
  • Execution starts: All triggers begin monitoring for events
  • Isolation: Graph runs in its own environment
  • Status tracking: Real-time updates are sent to the dashboard

AI Nodes in Deployed Graphs

Deployed graphs run without anyone watching. If a graph contains AI nodes (the AI Prompt node, or a custom Python node that calls a model), their outputs are generated automatically each time the trigger fires and are not reviewed by a person before downstream nodes act on them. Treat the design and test phase as your review step: run the graph manually with real inputs, check what the AI node produces, and add a Conditional or an approval step (for example an email or Slack notification before a destructive action) wherever a wrong answer would be costly.

Prompts and responses go directly from your machine to the provider you configured with your own API key; nothing passes through CG-JM. See AI and MCP for provider setup.

Managing Deployed Graphs

Viewing Graph Details

A deployed graph in the dashboard shows:

  • Graph name
  • Deployment time
  • Last update time
  • Current status
  • Active workflow count

Updating a Deployed Graph

To update a running graph with changes:

  1. Edit the graph in the work area
  2. Save the changes
  3. In the deployment dashboard, click Update on the graph
  4. The old version stops atomically
  5. The new version deploys immediately
  6. Deployment time is preserved

Atomic Updates: Updates are atomic - the old graph stops completely before the new one starts, preventing conflicts.

An update without new tool values retains the deployment’s existing overrides. To apply a different configuration, use Save & Deploy in Tools. Public parameter validation happens before the existing instance is stopped; an invalid or renamed exposed parameter is reported without replacing the running graph.

Stopping a Deployed Graph

To stop a running graph:

  1. In the deployment dashboard, select the graph
  2. Click Stop
  3. All triggers in the active workflow are stopped and the currently running actions are stopped.
  4. The graph is removed from the dashboard

Note: Stopping a graph cannot be undone. To run it again, you must redeploy.

Restarting the Background Service

Restarting the background service, for example with Restart Service… in the tray, stops running graphs. When the service is ready again, it deploys the executables of every solution set to Deploy on Service Start, as described in the next section. Deploy any other graph again yourself. The open graph editor reconnects automatically so node execution highlights and display values resume as new executions arrive.

Deploying When the Service Starts

The background service can deploy a solution’s executables each time it starts, so you do not have to deploy them again by hand.

  1. Make the graphs executables: right-click each graph in the solution explorer and choose Add to Executables. See Solutions.
  2. Right-click the solution file in the solution explorer and choose Deploy on Service Start. A check mark in the menu shows that it is on, and so does a power icon beside the solution file’s name in the explorer. Choose it again to turn it off. The explorer shows the icon on every solution file that is on this computer’s list, but offers the menu item only for the solution that is open.

The setting is stored in your settings on this computer, not in the solution file. Another computer that opens the same solution deploys nothing at start until the setting is turned on there too. Settings lists these solutions in the Startup section, under Solutions deployed when the service starts. Remove takes a solution off the list when you click Save Changes.

Turn the setting on only for solutions whose folder you trust. A changed solution file or graph file takes effect the next time the service starts, without anyone deploying it by hand.

Turning the setting on does not deploy anything by itself. To deploy the executables right away, use Deploy Solution. A solution without executables deploys nothing at service start either, and when you turn the setting on for one, the application tells you so: “This solution has no executables yet, so nothing deploys at service start. Add graphs with Add to Executables.”

Each time the service starts, for example when the application starts it, when you log in with Start the Succession service when I log in turned on, or after Restart Service… in the tray, it deploys the executables of every listed solution, each with the tool settings saved for it in the solution. After the computer restarts, the service starts when you log in if that setting is on, as described in “Starting the Service at Login”, and otherwise when you open the application and are signed in. An executable you stopped by hand before the restart is deployed again. Graphs that are not executables are not deployed. The service only reads the solutions on this list; it does not search for solution files. Once it has read a listed solution and tried to deploy its executables, the Console shows one line for that solution, saying how many of its executables were deployed, for example Deployed 2 of 3 executables of solution '...' at service start, or that it has no executables and nothing was deployed.

At service start, the service deploys only from this computer’s own drives. A solution file or an executable on a network drive is not deployed. That covers a path that starts with \\server\share, a drive letter that is mapped to a share on Windows, and a network share that is mounted on macOS or Linux. The Console shows a warning with the path, and the line for the solution counts such an executable as not deployed. The service does not try it again, and the tray does not count it. This limit applies only to the automatic deploy at service start. Deploy Solution in the application is something you start yourself, so it still deploys an executable on a network drive. To use the same graphs on several computers, keep them in version control, for example Git, Plastic SCM or Perforce, and check them out to a local folder on each computer.

If a graph cannot be deployed, or a solution file cannot be read, for example because it is on a drive that is not mounted yet, the service tries again several times over about ten minutes. Each try deploys the graph with the tool settings saved for it in the solution at that moment, so a value you correct in the meantime is used at the next try. If several listed solutions have the graph as an executable, the settings come from the first of them, in the order the service read them, that still has it as an executable and can be read; if none of them can be read, the service keeps the settings it tried before. Each failed attempt shows in the Console as a warning, and whatever still fails when the retries are over shows as an error. A graph that deploys on a later try shows a line saying so, for example Deployed graph '...' at service start on a retry. The tray’s status line counts these failures, for example Running · 3 deployed graphs · 1 failed to start. When the retries are over, a graph that is still not deployed, or a solution file that could not be read, stays in the count until the service starts again.

The service drops some failures from its retries, and they leave the count:

  • A graph you deploy yourself. The service does not deploy it again, even after you stop it. It leaves the count at once, with one exception: if the solution’s path to the graph runs through a symbolic link inside a folder that was missing when the service started, it leaves the count at the next retry, or when the service next starts if the retries are over.
  • A graph you remove from the solution’s executables with Remove from Executables.
  • A solution you take off the list, in Settings or by turning off Deploy on Service Start, and those of its graphs that have not deployed.

The last two are dropped before the service next tries again; if it cannot read your settings at that moment, it drops nothing and says so in the Console. A graph that another listed solution still has as an executable stays in the retries, provided the service has already read that solution. If it has not been able to read that solution yet, the graph is dropped, and it is deployed if that solution becomes readable while the service is still retrying. The executables of a solution you add to the list while the service is running are deployed the next time the service starts. When the service stops retrying a graph for one of these reasons, the Console shows one line saying why at its next try, for example No longer retrying graph '...' at service start: it has been deployed since the service started.

A graph can deploy while one of its triggers cannot start, for example a File System Watcher that watches a folder on a drive that is mounted after the service starts. Such a graph is counted in failed to start, and the Console shows an error with the graph’s path, the trigger’s node ID and the cause. It is not retried and does not recover by itself: once the folder is available, deploy the graph again. It leaves the count when you stop it, or when you redeploy it and its trigger starts. The service looks for such failures at each of its tries over the same ten minutes, also when nothing is left to retry, so the error can appear a few minutes after the trigger failed. A trigger that fails after that is counted in the tray but not shown in the Console.

To read these messages, open the Console with Open Console in the main menu (☰) or in the tray menu. Each of them contains at service start, so you can search the Console for that text. They are also written to the log files, one file per day named by date, such as 2026-11-18.log, in ~/.project-succession/logs on macOS and Linux and in %USERPROFILE%\.project-succession\logs on Windows.

A solution file that cannot be read stays on the list, because a moved file and a drive that is not mounted yet look the same. If you move, rename or delete a solution file that is on the list, remove it in Settings.

Starting the Service at Login

The background service can start when you log in to your computer, without the application window opening. On Windows and Linux, start at login has not been tested yet.

To turn this on, open Settings and select Start the Succession service when I log in in the Startup section. Clear the checkbox to turn it off. The change takes effect as soon as you click the checkbox: you do not need to click Save Changes, and Cancel does not undo it. If the change fails, an error message appears and the checkbox returns to its previous state.

In a development build the checkbox is unavailable and shows “Unavailable in development builds.” If the application cannot read whether the service starts at login, the checkbox is unavailable and shows “Could not read whether the service starts at login.” On macOS the setting cannot be turned on while the application runs from a place that may be gone at your next login, and the error message says which of two cases it is. If the application is on any disk other than the startup disk (a disk image, an external disk, a second internal disk or a network disk), the message names the application’s path and says that it is under /Volumes. If macOS runs the application from a temporary copy, which it does for an application opened where it was downloaded or unpacked, the message says that. In both cases, move the application to the Applications folder, open it from there, and turn the setting on. The message stays on screen until you close it. It is also written to that day’s log file, in a line containing Start at login was not switched on.

When the setting is on, your operating system starts the application at login with the argument --service-only. Started this way, the application starts the background service if no service is running, and then exits without opening a window. If a service is already running, it starts nothing. The service shows its icon in the tray (the menu bar on macOS) and deploys the executables of the solutions set to Deploy on Service Start, as described in “Deploying When the Service Starts”. To open the application, choose Open Application in the tray menu or start the application as usual.

The service starts when you log in, not when the computer starts. After a restart, the service does not start until you log in. On a computer that restarts while nobody is there, the operating system’s automatic login can log your user account in; Project Succession does not set that up.

The service reads its API token and your secrets from the system keyring. If it cannot read the token when it starts, for example because the keyring is still locked, it does not create a new one: your token stays as it is, and programs you gave it to, such as a DCC plugin or an MCP client, keep working once the keyring can be read. Until then the service may refuse requests that need the token. It writes an error to the log, in a line that starts with Could not read the API token from the system keychain, and an entry to the audit log. The service still creates a token when none is stored at all, as on a fresh installation. On a computer that logs in automatically, check that the keyring is unlocked at login.

If the application cannot start the service at login, it writes the reason to that day’s log file, in a line containing Starting the Succession service with --service-only failed. The log also shows whether the service was started or was already running, in a line containing Started the Succession service or The Succession service was already running. The first of these is written once the started service answers, which can take a few seconds; if it has not answered after 30 seconds, the application reports a failure instead. The log files are described in “Deploying When the Service Starts”.

If another program already uses the service’s address and port, the service does not start. Its log line says that the address is in use and that what holds it did not answer as a Succession service. Close the other program, or change the backend port in Settings. If the address is held by a Succession service that is already running, a second service exits quietly and the running one carries on.

The service takes its port a few seconds before it answers requests. If you open the application in that time, the application waits for the service, for up to 30 seconds. If the service has still not answered, an error message says “The backend port is taken, but nothing has answered on it yet. The Succession service may still be starting. The API token was not sent”, and the application keeps trying to connect.

The setting has two parts. Your choice is stored in your Project Succession settings on this computer, and the checkbox shows that choice. Turning the setting on also registers an entry with the operating system, for your user account only, and that entry is what starts the service:

  • macOS: the launch agent file ~/Library/LaunchAgents/Project Succession.plist
  • Windows: the value Project Succession in the registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
  • Linux: the file autostart/Project Succession.desktop in your configuration folder, which is ~/.config unless the environment variable XDG_CONFIG_HOME names another folder

To remove the entry, clear the checkbox, or delete the file (macOS, Linux) or the registry value (Windows) listed above. Uninstalling the application does not remove the entry, so clear the checkbox before you uninstall, or delete the entry afterward.

The entry can change without Project Succession. You can delete it, and on Windows an administrator can add an entry with the same name for all users, under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run. The checkbox keeps showing your choice. When your choice and the system disagree, a note below the checkbox says so:

  • “The system has no start-at-login entry for Project Succession. Turn this off and on again to create it.” Your choice is on, but nothing is registered.
  • “The system still has a start-at-login entry for Project Succession that this setting did not remove.” Your choice is off, but an entry exists. This happens with the administrator’s entry: clearing the checkbox leaves it in place, unless the application runs as administrator, in which case it removes the entry for all users.

Project Succession can only see whether an entry exists, not whether it is switched on. If you switch the entry off in the system’s own startup settings (Login Items in System Settings on macOS, your desktop’s startup settings on Linux, Task Manager on Windows), the note may be missing, or may appear although the entry is still there.

The entry holds the location of the application at the moment you turned the setting on. Opening the application does not change the entry. If you move the application, clear the checkbox and select it again, so that the entry points to the new location.

Opening a Deployed Graph

To view or edit a deployed graph:

  1. In the deployment dashboard
  2. Double-Click the graph
  3. The graph loads in the editor
  4. Make changes as needed
  5. Save your Graph
  6. Use Update in the deployment dashboard to deploy the changes

Important: Opening a deployed graph in the work area does not stop it. It continues running independently.

Deploying from Inside a Graph

Add Deploy Graph from Flow Control and connect its Execute input. Set Graph Path to an absolute path or a path relative to the saved graph containing the node. Inside a subgraph, relative paths use that subgraph’s folder. The path can also come from a parameter data connection or expression. Both .json and .succession graph files are supported; allowed-path settings apply.

New deployments appear in the dashboard, listen to their own triggers, and use their configured public parameter defaults. A target other than the caller’s deployed root graph runs independently: stopping the caller’s run or graph does not stop it. Targeting that root graph reuses its existing deployment: Stop Graph stops it, while Stop Run leaves it deployed. For nodes inside a subgraph, the deployed root is the graph that started the run.

An already deployed target keeps running with its current parameter values, without restarting; a stopped target can be deployed again.

The Deployment output contains graph_path (the canonical path), graph_name, and already_deployed. On Deployed fires after successful registration or when the target is already active. Both outputs carry the deployment details; neither waits for the target’s runs to finish. Missing, invalid, or blocked files fail the node through the normal error handling.

A request cancelled while waiting for the deployment manager does not deploy a graph. Once accepted by the manager, deployment finishes independently even if the caller stops. To stop the target, use the dashboard or a Stop Graph node inside that target.

Stopping from Inside a Graph

Add Stop Run or Stop Graph from the Flow Control category. Both have one Execute input, no parameters, and no output ports. Connect a conditional branch to the stop node when its condition should end execution.

  • Stop Run cancels the run that reaches it, including parallel branches, pending retries, and nested subgraph or loop invocations. Other runs continue, and the graph stays deployed so future trigger events (including queued events) can run.
  • Stop Graph stops the deployed graph’s triggers and cancels all of its active runs. Pending trigger events are discarded. Other deployed graphs keep running. Deploy the graph again to restart it.

Inside a subgraph or loop, these nodes apply to the originating run and its deployed root graph. Disable a stop node to use the normal disabled-node bypass behavior.

Stopped runs appear as stopped in execution history; interrupted node attempts appear as skipped. Nodes cancelled before their first attempt appear as Not executed, with a cancellation reason. An intentional stop does not create a graph error. A graph that stops itself leaves the deployed list; its history remains available until it is removed or another graph is deployed.

Stopping prevents further graph steps and cancels asynchronous work, including the shell or Python interpreter launched by script actions. It cannot undo completed side effects, retract requests already accepted by external applications, or forcibly interrupt synchronous work already executing. Child processes started by a script may continue independently, even if the script was waiting for them. Stopping a run does not terminate an entire operating-system process tree.

Workspace Lock

A graph can lock the workspace while it runs. Right-click the graph in the solution explorer and choose Lock Workspace While Running; choose Unlock Workspace to clear it. A change to this setting, or to Drop Firings While Locked, applies when the graph is next deployed.

A locked graph runs alone, in both directions. One of its runs starts only when no other run is active, and while it runs no other run starts, including another run of the same graph. There is one lock per Succession process: every graph deployed in the same app or headless runner shares it, while separate machines and containers each have their own. Only active runs count; a deployed graph that is idle never holds or blocks the lock.

A trigger event that cannot start yet waits in a line shared by all graphs. Each graph’s next event joins the line when its previous one starts, and the line starts events in the order they joined it. No event jumps the line: once a locked graph is waiting for the current runs to finish, later events of other graphs wait behind it. While an event waits, the graph’s Tools entry shows Waiting for workspace lock with the name of the graph it is waiting for, and the Deployments dashboard shows a Waiting for lock row.

Events that arrive while a graph’s event waits are held in memory in arrival order and start after it; like queued events, they are lost when Succession restarts. For a graph that fires often, such as a poller, that can mean many held events behind one long locked run. Choose Drop Firings While Locked on that graph to discard its events whenever they would have to wait, whether the graph is locked itself or not; choose Queue Firings While Locked to make them wait again. A dropped event never becomes a run: the trigger node shows Dropped: workspace locked by <graph name>, naming the graph it would have waited for, and a synchronous webhook call that is dropped returns HTTP 503 at once with that text as its body.

The lock is released whenever the run ends, however it ends: finished, failed, Stop Run, Stop Graph, or the run timeout. A run ends only once nothing it started is still running: when a node inside a subgraph fails, the subgraph’s other branches that were already running keep the run, and the lock, until they finish. Stopping a graph discards its waiting and held events.

When the graph runs as a subgraph inside another graph’s run, the parent run’s lock applies instead of its own.

Run Timeout

A graph can limit how long each of its runs may take. Right-click the graph in the solution explorer, choose Set Run Timeout…, and enter the limit in seconds. Choose Remove Run Timeout to clear it. A change applies when the graph is next deployed. In the graph file, a timeoutSeconds of 0 or an absent runPolicy block also means no timeout.

The clock starts when a run starts. A run that exceeds the timeout ends the same way as Stop Run: its branches, retries, and nested invocations are cancelled, and the graph stays deployed for future trigger events. The run appears as timed out in execution history, and the Runs window shows the message “Run exceeded the timeout of N seconds”. Like Stop Run, the timeout cancels asynchronous work but cannot interrupt a node that is in the middle of synchronous work; the run is recorded as timed out, and a locked run releases the workspace lock, when that node returns.

When the graph runs as a subgraph inside another graph’s run, the parent run’s timeout applies instead of its own.

Health Monitoring

Health Status Indicators

Each deployed graph shows a health status:

StatusMeaningAppearance
HealthyRunning with no errorsGreen indicator
DegradedRunning but has recent errorsYellow indicator
UnhealthyStopped or tasks diedRed indicator

Health Checks

The system automatically monitors:

  • Active workflows: Number of currently executing workflows
  • Uptime: How long the graph has been running
  • Error tracking: Recent errors and failure messages
  • Task health: Status of background tasks

Multi-Graph Management

Running Multiple Graphs

You can deploy and run multiple graphs simultaneously:

Independent Execution

  • Each graph has its own triggers and actions
  • Graphs don’t interfere with each other, unless one of them locks the workspace (see Workspace Lock above)
  • Resources are isolated per graph

Shared Resources

  • All graphs share the same secrets vault
  • Backend settings apply to all graphs
  • DCC tool integrations are shared

Performance Considerations

  • Each graph consumes system resources
  • Monitor health dashboard for performance issues
  • Consider resource-intensive actions when deploying many graphs

Troubleshooting

Graph Won’t Deploy

Error: “Graph already deployed”

  • Stop the existing graph first, or
  • Use Update to atomically redeploy

Error: “File not found”

  • Check that the file path is correct
  • Use absolute paths instead of relative paths
  • Ensure the graph file exists and is readable

Error: “Invalid graph format”

  • The graph file may be corrupted
  • Open the file in work area to validate structure
  • Re-save the graph and try again

Graph Shows Unhealthy

Degraded status

  • Check the last error message
  • Open graph in work area to debug
  • Review console logs for details
  • Fix issues and use Update to redeploy

Unhealthy status

  • Graph execution has stopped unexpectedly
  • Check console logs for crash information
  • Stop the graph and redeploy
  • Consider reducing resource-intensive operations

Updates Not Appearing

Dashboard not updating

  • Check WebSocket connection status
  • Refresh the dashboard
  • Restart the application

Graph changes not taking effect

  • Ensure you saved the graph file
  • Use Update to redeploy changes
  • Verify file path matches deployed graph

Performance Issues

High resource usage

  • Too many graphs deployed simultaneously
  • Resource-intensive actions running frequently
  • Consider stopping non-critical graphs
  • Increase interval timing for scheduled tasks

Lagging updates

  • WebSocket channel may be overwhelmed
  • Check console for “lagged” warnings
  • Reduce update frequency in graphs (less log event nodes)
  • Stop some deployed graphs

CLI Integration

For Business plan users, the CLI provides full graph deployment management:

# Deploy a graph from CLI
succession deploy-graph /path/to/pipeline.json

# Update a deployed graph
succession update-graph /path/to/pipeline.json

# List all deployed graphs
succession list-graphs

# Check health of all graphs
succession health-check

# Check health of specific graph
succession health-check /path/to/pipeline.json

# Stop a deployed graph
succession stop-graph /path/to/pipeline.json

See CLI Reference for complete CLI documentation.

Advanced Topics

API Authentication

All API endpoints require authentication using a Bearer token. This ensures that only authorized clients can manage your pipeline graphs.

Token Generation

Automatic Generation: On first startup, Project Succession automatically generates an API token and stores it securely in your system’s keyring (Windows Credential Manager, macOS Keychain, or Linux Secret Service). No manual setup is required.

Manual Management: Business+ license users can view, regenerate, or delete tokens through the Settings modal in the Tauri app under the “API Access” section.

Using Tokens with HTTP Requests

All HTTP requests to protected endpoints (/graph_command) must include the token in the Authorization header:

curl -X POST http://localhost:3000/graph_command \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{"action":"ListGraphs"}'

Using Tokens with WebSocket Connections

WebSocket connections (/graph_ws) authenticate via a query parameter:

ws://localhost:3000/graph_ws?token=YOUR_API_TOKEN

Retrieving Your Token

From the Tauri App (Business+ license):

  1. Open Settings (gear icon)
  2. Scroll to the API Access section
  3. Your token is displayed and can be copied

From the CLI:

succession get-token

Programmatically (from Tauri frontend):

import { invoke } from '@tauri-apps/api/core';

const token = await invoke<string>('ensure_api_token');

Token Security

  • Tokens are stored securely in your operating system’s credential manager
  • Tokens do not expire by default (unlimited duration)
  • Regenerating a token invalidates the previous token immediately
  • Keep your token confidential - anyone with the token can manage your pipelines

Troubleshooting Authentication

Error: “Unauthorized” (401)

  • Ensure the Authorization header is present and correctly formatted
  • Verify the token is valid and not expired
  • Check that you’re using Bearer prefix (with space)

Error: “Token not found”

  • The token may have been deleted
  • Restart the application to auto-generate a new token
  • Or regenerate manually in Settings

API Integration

Graphs can be managed programmatically via HTTP API:

Endpoint: POST http://localhost:3000/graph_command

Available Commands:

  • DeployGraph - Deploy a new graph
  • UpdateGraph - Update an existing graph
  • StopGraph - Stop a deployed graph
  • ListGraphs - List all deployed graphs
  • GetGraph - Get specific graph details
  • HealthCheck - Check health status

Example Request:

curl -X POST http://localhost:3000/graph_command \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
    "action": "DeployGraph",
    "params": {
      "file_path": "/path/to/pipeline.json"
    }
  }'

Example Response:

{
  "file_path": "/path/to/pipeline.json",
  "graph_name": "My Pipeline",
  "status": "Running",
  "active_workflows": 0
}

WebSocket Updates

Real-time graph updates via WebSocket:

Endpoint: ws://localhost:3000/graph_ws?token=YOUR_API_TOKEN

Note: Authentication is required via the token query parameter.

Message Format:

{
  "graph_file_path": "/path/to/pipeline.json",
  "node_update": {
    "node_id": "node_123",
    "status": "running",
    "workflow_id": "workflow_456",
    "originating_trigger": "trigger_789"
  }
}

Filter updates by graph_file_path to track specific graphs.

Headless Deployment

For production servers without a GUI:

# Start the backend service
succession start-service

# Deploy graphs via CLI
succession deploy-graph /pipelines/production.json

# Monitor via health checks
succession health-check

# No GUI required

Automated Deployment

Script deployment workflows for CI/CD, example script:

#!/bin/bash
# deploy-pipelines.sh

set -e  # Exit on error

# Start service if not running
succession status || succession start-service

# Deploy all pipelines
for pipeline in /pipelines/*.json; do
    echo "Deploying $pipeline..."
    succession deploy-graph "$pipeline"
done

# Verify all are healthy
succession health-check

# Show final status
succession list-graphs

Health Monitoring Integration

Integrate with monitoring systems (Prometheus, Datadog, etc.):

# Health check endpoint for monitoring
curl -X POST http://localhost:3000/graph_command \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{"action":"HealthCheck","params":{}}'

Parse JSON response to extract health metrics:

  • status: “Healthy”, “Degraded”, or “Unhealthy”
  • active_workflows: Current workload
  • task_count: Background task count
  • uptime_seconds: Time since deployment
  • last_error: Recent error message (if any)