Overview
Thedagster trigger command launches a new execution of a Dagster job compiled from your Metaflow flow. This command provides a programmatic way to start runs without using the Dagster UI.
Command Syntax
Options
Path to the generated Dagster definitions file. Defaults to
<flowname>_dagster.py (lowercased).Dagster job name to execute. Defaults to the flow name. Must match the job name used during
dagster create.Flow parameter as
key=value. Can be specified multiple times to pass multiple parameters. Parameters are passed as op-level config to the start op.Examples
Basic Usage
Trigger a job with default parameters:Specify Definitions File
Trigger a job from a custom definitions file:Pass Flow Parameters
Provide parameter values for parametrized flows:Custom Job Name
Trigger a job with a custom name:Complete Example
Trigger a parametrized flow with all options:Passing Parameters
For flows withmetaflow.Parameter definitions, use --run-param to provide values:
Output
On successful execution, the command displays:Run Configuration
Parameters are passed to Dagster as op-level config:--run-param arguments and passed to the start op.
Dagster Home Directory
The command automatically manages theDAGSTER_HOME environment variable:
- If
DAGSTER_HOMEis already set and exists, it uses that configuration - Otherwise, creates a temporary directory with:
- SQLite storage (single-process, no daemon required)
SyncInMemoryRunLauncher(executes runs synchronously)DefaultRunCoordinator(no queue daemon required)
Metaflow Run ID
The Metaflow run ID is derived deterministically from the Dagster run UUID:Next Steps
Create Definitions
Compile a flow to a Dagster definitions file
Resume Failed Runs
Resume a failed run and skip completed steps