Trigger dagraph workflows via webhook or cron schedule
Run dagraph workflows automatically on a cron schedule or in response to HTTP POST requests using the serve and schedule commands.
agentgraph schedule and agentgraph serve turn a DAG YAML into a long-running service. schedule fires the workflow on a cron expression and blocks until you press Ctrl+C. serve starts an HTTP server that runs the workflow when it receives a POST request, and optionally also runs on a cron schedule. Both commands require the serve extras package.
Run a DAG on a repeating cron schedule. Each tick creates a new run with a fresh run ID. If the previous run is still in progress when the next tick fires, that tick is skipped and a warning is logged — runs never overlap.
Static inputs passed to every run. Repeat for multiple values. These are the same across all ticks; use a user_input node if you need dynamic values per run.
Start an HTTP server that triggers a DAG run when it receives a POST request. The JSON body keys are merged with any --input defaults and passed to the DAG as template inputs. The server responds synchronously with the run ID and status once the run completes.You can combine a webhook trigger and a cron schedule in a single serve invocation.
If set, all incoming requests must include the header Authorization: Bearer <secret>. Reads from the AGENTGRAPH_WEBHOOK_SECRET environment variable if the flag is not passed explicitly.
Possible status values are completed, failed, and paused (if the DAG hit an approval gate).
serve runs each triggered DAG synchronously in the same process. For high-throughput use cases, consider the dagraph cloud or self-hosted control-plane, which queues runs in a job worker.