Use Dagster to launch jobs, inspect run status and logs, terminate or delete runs, and reexecute failed runs. List jobs across repositories and start or stop schedules and sensors on the connected instance.
For example, start a job from a workflow, poll its run status, then retrieve logs if it fails. Provide the instance's GraphQL endpoint. Dagster+ requires an API token ; authentication for a self-hosted endpoint depends on how you expose it.
Connect to a Dagster instance to launch job runs, monitor run status, list available jobs across repositories, terminate or delete runs, reexecute failed runs, fetch run logs, and manage schedules and sensors. API token only required for Dagster+.
Launch a job run on a Dagster instance.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3000 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) repositoryLocationNamestring Yes Repository location (code location) name repositoryNamestring Yes Repository name within the code location jobNamestring Yes Name of the job to launch runConfigJsonstring No Run configuration as a JSON object (optional) tagsstring No Tags as a JSON array of {key, value} objects (optional)
Parameter Type Description runIdstring The globally unique ID of the launched run
Get the status and details of a Dagster run by its ID.
Inputs and outputsParameter Type Description runIdstring Run ID jobNamestring Name of the job this run belongs to statusstring Run status (QUEUED, NOT_STARTED, STARTING, MANAGED, STARTED, SUCCESS, FAILURE, CANCELING, CANCELED) modestring Execution mode of the run startTimenumber Run start time as Unix timestamp endTimenumber Run end time as Unix timestamp creationTimenumber Time the run was created as Unix timestamp updateTimenumber Time the run was last updated as Unix timestamp parentRunIdstring ID of the immediate parent run (for re-executions) rootRunIdstring ID of the root run in the re-execution group canTerminateboolean Whether the run can currently be terminated assetSelectionjson Asset keys targeted by the run, as slash-joined strings runConfigYamlstring Run configuration as YAML tagsjson Run tags as array of {key, value} objects
Fetch execution event logs for a Dagster run.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) runIdstring Yes The ID of the run to fetch logs for afterCursorstring No Cursor for paginating through log events (from a previous response) limitnumber No Maximum number of log events to return
Parameter Type Description eventsjson Array of log events (type, message, timestamp, level, stepKey, eventType) ↳ type string GraphQL typename of the event ↳ message string Human-readable log message ↳ timestamp string Event timestamp as a Unix epoch string ↳ level string Log level (DEBUG, INFO, WARNING, ERROR, CRITICAL) ↳ stepKey string Step key, if the event is step-scoped ↳ eventType string Dagster event type enum value cursorstring Cursor for fetching the next page of log events hasMoreboolean Whether more log events are available beyond this page
List Dagster runs with optional filters by job name, status, and creation-time range, plus cursor pagination.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) jobNamestring No Filter runs by job name (optional) statusesstring No Comma-separated run statuses to filter by, e.g. "SUCCESS,FAILURE" (optional) createdAfternumber No Only return runs created at or after this Unix timestamp in seconds (optional) createdBeforenumber No Only return runs created at or before this Unix timestamp in seconds (optional) cursorstring No Run ID to page after, from a previous response cursor (optional) limitnumber No Maximum number of runs to return (default 20)
Parameter Type Description runsjson Array of runs ↳ runId string Run ID ↳ jobName string Job name ↳ status string Run status ↳ tags json Run tags as array of {key, value} objects ↳ startTime number Start time as Unix timestamp ↳ endTime number End time as Unix timestamp cursorstring Run ID of the last returned run — pass as cursor to fetch the next page hasMoreboolean Whether more runs are likely available beyond this page
List all jobs across repositories in a Dagster instance.
Inputs and outputsParameter Type Description jobsjson Array of jobs with name and repositoryName ↳ name string Job name ↳ repositoryName string Repository name
Reexecute an existing Dagster run, optionally resuming only from failed steps.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) parentRunIdstring Yes The ID of the run to reexecute strategystring Yes Reexecution strategy: ALL_STEPS reruns everything, FROM_FAILURE resumes from failed steps, FROM_ASSET_FAILURE resumes from failed assets
Parameter Type Description runIdstring The ID of the newly launched reexecution run
Terminate an in-progress Dagster run.
Inputs and outputsParameter Type Description successboolean Whether the run was successfully terminated runIdstring The ID of the terminated run messagestring Error or status message if termination failed
Permanently delete a Dagster run record.
Inputs and outputsParameter Type Description runIdstring The ID of the deleted run
List all schedules in a Dagster repository, optionally filtered by status.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) repositoryLocationNamestring Yes Repository location (code location) name repositoryNamestring Yes Repository name within the code location scheduleStatusstring No Filter schedules by status: RUNNING or STOPPED (omit to return all)
Parameter Type Description schedulesjson Array of schedules (name, cronSchedule, jobName, status, id, description, executionTimezone) ↳ name string Schedule name ↳ cronSchedule string Cron expression for the schedule ↳ jobName string Job the schedule targets ↳ status string Schedule status: RUNNING or STOPPED ↳ id string Instigator state ID — use this to start or stop the schedule ↳ description string Human-readable schedule description ↳ executionTimezone string Timezone for cron evaluation
Enable (start) a schedule in a Dagster repository.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) repositoryLocationNamestring Yes Repository location (code location) name repositoryNamestring Yes Repository name within the code location scheduleNamestring Yes Name of the schedule to start
Parameter Type Description idstring Instigator state ID of the schedule statusstring Updated schedule status (RUNNING or STOPPED)
Disable (stop) a running schedule in Dagster.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) instigationStateIdstring Yes InstigationState ID of the schedule to stop — available from dagster_list_schedules output
Parameter Type Description idstring Instigator state ID of the schedule statusstring Updated schedule status (RUNNING or STOPPED)
List all sensors in a Dagster repository, optionally filtered by status.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) repositoryLocationNamestring Yes Repository location (code location) name repositoryNamestring Yes Repository name within the code location sensorStatusstring No Filter sensors by status: RUNNING or STOPPED (omit to return all)
Parameter Type Description sensorsjson Array of sensors (name, sensorType, status, id, description) ↳ name string Sensor name ↳ sensorType string Sensor type (ASSET, AUTO_MATERIALIZE, FRESHNESS_POLICY, MULTI_ASSET, RUN_STATUS, STANDARD, UNKNOWN) ↳ status string Sensor status: RUNNING or STOPPED ↳ id string Instigator state ID — use this to start or stop the sensor ↳ description string Human-readable sensor description
Enable (start) a sensor in a Dagster repository.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) repositoryLocationNamestring Yes Repository location (code location) name repositoryNamestring Yes Repository name within the code location sensorNamestring Yes Name of the sensor to start
Parameter Type Description idstring Instigator state ID of the sensor statusstring Updated sensor status (RUNNING or STOPPED)
Disable (stop) a running sensor in Dagster.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) instigationStateIdstring Yes InstigationState ID of the sensor to stop — available from dagster_list_sensors output
Parameter Type Description idstring Instigator state ID of the sensor statusstring Updated sensor status (RUNNING or STOPPED)
List assets tracked by a Dagster instance, optionally filtered by key prefix.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) prefixstring No Slash-delimited asset key prefix to filter by, e.g. "raw" or "raw/events" (optional) cursorstring No Asset key cursor from a previous response, for pagination (optional) limitnumber No Maximum number of assets to return per page (default 100)
Parameter Type Description assetsjson Array of assets (assetKey, path) ↳ assetKey string Slash-joined asset key ↳ path json Asset key path segments cursorstring Cursor to pass on the next call to fetch more assets hasMoreboolean Whether more assets are likely available beyond this page
Get an asset definition and its latest materialization by asset key.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) assetKeystring Yes Slash-delimited asset key, e.g. "my_asset" or "raw/events"
Parameter Type Description assetKeystring Slash-joined asset key pathjson Asset key path segments groupNamestring Asset group the definition belongs to descriptionstring Asset description jobNamesjson Names of jobs that can materialize this asset computeKindstring Compute kind tag (e.g., python, dbt, spark) isPartitionedboolean Whether the asset is partitioned latestMaterializationjson Most recent materialization (runId, timestamp, partition, stepKey) ↳ runId string Run that produced the materialization ↳ timestamp string Materialization timestamp (epoch ms string) ↳ partition string Partition key, if partitioned ↳ stepKey string Step key that emitted it
Materialize selected assets by launching their asset job with an asset selection.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) repositoryLocationNamestring Yes Repository location (code location) name repositoryNamestring Yes Repository name within the code location jobNamestring Yes Asset job that contains the assets, e.g. "__ASSET_JOB" or a named asset job assetSelectionstring Yes Comma- or newline-separated asset keys to materialize, each slash-delimited (e.g. "raw/events, summary") tagsstring No Tags as a JSON array of {key, value} objects (optional)
Parameter Type Description runIdstring The globally unique ID of the launched materialization run
Report an external (runless) materialization or observation for an asset.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) assetKeystring Yes Slash-delimited asset key to report against, e.g. "my_asset" or "raw/events" eventTypestring No Event type to report: ASSET_MATERIALIZATION (default) or ASSET_OBSERVATION partitionKeysstring No Comma-separated partition keys to report against (optional) descriptionstring No Human-readable description for the reported event (optional)
Parameter Type Description successboolean Whether the event was reported successfully assetKeystring Slash-joined asset key the event was reported against
DESTRUCTIVE: permanently wipes ALL materialization history (every partition) for an asset. This cannot be undone.
Inputs and outputsParameter Type Required Description hoststring Yes Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001 ) apiKeystring No Dagster+ API token (leave blank for OSS / self-hosted) assetKeystring Yes Slash-delimited asset key to wipe, e.g. "my_asset" or "raw/events"
Parameter Type Description successboolean Whether the asset was wiped successfully assetKeystring Slash-joined asset key that was wiped