AptlyStar

Dagster

Orchestrate data pipelines and manage job runs with Dagster

使用说明

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+.

工具

dagster_launch_run

Launch a job run on a Dagster instance.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3000\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)
repositoryLocationNamestring是Repository location (code location) name
repositoryNamestring是Repository name within the code location
jobNamestring是Name of the job to launch
runConfigJsonstring否Run configuration as a JSON object (optional)
tagsstring否Tags as a JSON array of {key, value} objects (optional)

输出

参数类型描述
runIdstringThe globally unique ID of the launched run

dagster_get_run

Get the status and details of a Dagster run by its ID.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3000\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)
runIdstring是The ID of the run to retrieve

输出

参数类型描述
runIdstringRun ID
jobNamestringName of the job this run belongs to
statusstringRun status (QUEUED, NOT_STARTED, STARTING, MANAGED, STARTED, SUCCESS, FAILURE, CANCELING, CANCELED)
startTimenumberRun start time as Unix timestamp
endTimenumberRun end time as Unix timestamp
runConfigYamlstringRun configuration as YAML
tagsjsonRun tags as array of {key, value} objects

dagster_get_run_logs

Fetch execution event logs for a Dagster run.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)
runIdstring是The ID of the run to fetch logs for
afterCursorstring否Cursor for paginating through log events (from a previous response)
limitnumber否Maximum number of log events to return

输出

参数类型描述
eventsjsonArray of log events (type, message, timestamp, level, stepKey, eventType)
↳ typestringGraphQL typename of the event
↳ messagestringHuman-readable log message
↳ timestampstringEvent timestamp as a Unix epoch string
↳ levelstringLog level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
↳ stepKeystringStep key, if the event is step-scoped
↳ eventTypestringDagster event type enum value
cursorstringCursor for fetching the next page of log events
hasMorebooleanWhether more log events are available beyond this page

dagster_list_runs

List recent Dagster runs, optionally filtered by job name.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)
jobNamestring否Filter runs by job name (optional)
statusesstring否Comma-separated run statuses to filter by, e.g. "SUCCESS,FAILURE" (optional)
limitnumber否Maximum number of runs to return (default 20)

输出

参数类型描述
runsjsonArray of runs
↳ runIdstringRun ID
↳ jobNamestringJob name
↳ statusstringRun status
↳ tagsjsonRun tags as array of {key, value} objects
↳ startTimenumberStart time as Unix timestamp
↳ endTimenumberEnd time as Unix timestamp
cursorstringRun id cursor to pass on the next call to fetch more runs
hasMorebooleanWhether more runs are likely available beyond this page

dagster_list_jobs

List all jobs across repositories in a Dagster instance.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)

输出

参数类型描述
jobsjsonArray of jobs with name and repositoryName
↳ namestringJob name
↳ repositoryNamestringRepository name

dagster_reexecute_run

Reexecute an existing Dagster run, optionally resuming only from failed steps.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)
parentRunIdstring是The ID of the run to reexecute
strategystring是Reexecution strategy: ALL_STEPS reruns everything, FROM_FAILURE resumes from failed steps, FROM_ASSET_FAILURE resumes from failed assets

输出

参数类型描述
runIdstringThe ID of the newly launched reexecution run

dagster_terminate_run

Terminate an in-progress Dagster run.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)
runIdstring是The ID of the run to terminate

输出

参数类型描述
successbooleanWhether the run was successfully terminated
runIdstringThe ID of the terminated run
messagestringError or status message if termination failed

dagster_delete_run

Permanently delete a Dagster run record.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)
runIdstring是The ID of the run to delete

输出

参数类型描述
runIdstringThe ID of the deleted run

dagster_list_schedules

List all schedules in a Dagster repository, optionally filtered by status.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)
repositoryLocationNamestring是Repository location (code location) name
repositoryNamestring是Repository name within the code location
scheduleStatusstring否Filter schedules by status: RUNNING or STOPPED (omit to return all)

输出

参数类型描述
schedulesjsonArray of schedules (name, cronSchedule, jobName, status, id, description, executionTimezone)
↳ namestringSchedule name
↳ cronSchedulestringCron expression for the schedule
↳ jobNamestringJob the schedule targets
↳ statusstringSchedule status: RUNNING or STOPPED
↳ idstringInstigator state ID — use this to start or stop the schedule
↳ descriptionstringHuman-readable schedule description
↳ executionTimezonestringTimezone for cron evaluation

dagster_start_schedule

Enable (start) a schedule in a Dagster repository.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)
repositoryLocationNamestring是Repository location (code location) name
repositoryNamestring是Repository name within the code location
scheduleNamestring是Name of the schedule to start

输出

参数类型描述
idstringInstigator state ID of the schedule
statusstringUpdated schedule status (RUNNING or STOPPED)

dagster_stop_schedule

Disable (stop) a running schedule in Dagster.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)
instigationStateIdstring是InstigationState ID of the schedule to stop — available from dagster_list_schedules output

输出

参数类型描述
idstringInstigator state ID of the schedule
statusstringUpdated schedule status (RUNNING or STOPPED)

dagster_list_sensors

List all sensors in a Dagster repository, optionally filtered by status.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)
repositoryLocationNamestring是Repository location (code location) name
repositoryNamestring是Repository name within the code location
sensorStatusstring否Filter sensors by status: RUNNING or STOPPED (omit to return all)

输出

参数类型描述
sensorsjsonArray of sensors (name, sensorType, status, id, description)
↳ namestringSensor name
↳ sensorTypestringSensor type (ASSET, AUTO_MATERIALIZE, FRESHNESS_POLICY, MULTI_ASSET, RUN_STATUS, STANDARD)
↳ statusstringSensor status: RUNNING or STOPPED
↳ idstringInstigator state ID — use this to start or stop the sensor
↳ descriptionstringHuman-readable sensor description

dagster_start_sensor

Enable (start) a sensor in a Dagster repository.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)
repositoryLocationNamestring是Repository location (code location) name
repositoryNamestring是Repository name within the code location
sensorNamestring是Name of the sensor to start

输出

参数类型描述
idstringInstigator state ID of the sensor
statusstringUpdated sensor status (RUNNING or STOPPED)

dagster_stop_sensor

Disable (stop) a running sensor in Dagster.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for Dagster OSS or when not using Dagster+)
instigationStateIdstring是InstigationState ID of the sensor to stop — available from dagster_list_sensors output

输出

参数类型描述
idstringInstigator state ID of the sensor
statusstringUpdated sensor status (RUNNING or STOPPED)

dagster_list_assets

List assets tracked by a Dagster instance, optionally filtered by key prefix.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for OSS / self-hosted)
prefixstring否Slash-delimited asset key prefix to filter by, e.g. "raw" or "raw/events" (optional)
cursorstring否Asset key cursor from a previous response, for pagination (optional)
limitnumber否Maximum number of assets to return per page (default 100)

输出

参数类型描述
assetsjsonArray of assets (assetKey, path)
↳ assetKeystringSlash-joined asset key
↳ pathjsonAsset key path segments
cursorstringCursor to pass on the next call to fetch more assets
hasMorebooleanWhether more assets are likely available beyond this page

dagster_get_asset

Get an asset definition and its latest materialization by asset key.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for OSS / self-hosted)
assetKeystring是Slash-delimited asset key, e.g. "my_asset" or "raw/events"

输出

参数类型描述
assetKeystringSlash-joined asset key
pathjsonAsset key path segments
groupNamestringAsset group the definition belongs to
descriptionstringAsset description
jobNamesjsonNames of jobs that can materialize this asset
computeKindstringCompute kind tag (e.g., python, dbt, spark)
isPartitionedbooleanWhether the asset is partitioned
latestMaterializationjsonMost recent materialization (runId, timestamp, partition, stepKey)
↳ runIdstringRun that produced the materialization
↳ timestampstringMaterialization timestamp (epoch ms string)
↳ partitionstringPartition key, if partitioned
↳ stepKeystringStep key that emitted it

dagster_materialize_assets

Materialize selected assets by launching their asset job with an asset selection.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for OSS / self-hosted)
repositoryLocationNamestring是Repository location (code location) name
repositoryNamestring是Repository name within the code location
jobNamestring是Asset job that contains the assets, e.g. "__ASSET_JOB" or a named asset job
assetSelectionstring是Comma- or newline-separated asset keys to materialize, each slash-delimited (e.g. "raw/events, summary")
tagsstring否Tags as a JSON array of {key, value} objects (optional)

输出

参数类型描述
runIdstringThe globally unique ID of the launched materialization run

dagster_report_asset_materialization

Report an external (runless) materialization or observation for an asset.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for OSS / self-hosted)
assetKeystring是Slash-delimited asset key to report against, e.g. "my_asset" or "raw/events"
eventTypestring否Event type to report: ASSET_MATERIALIZATION (default) or ASSET_OBSERVATION
partitionKeysstring否Comma-separated partition keys to report against (optional)
descriptionstring否Human-readable description for the reported event (optional)

输出

参数类型描述
successbooleanWhether the event was reported successfully
assetKeystringSlash-joined asset key the event was reported against

dagster_wipe_asset

DESTRUCTIVE: permanently wipes ALL materialization history (every partition) for an asset. This cannot be undone.

输入

参数类型必填描述
hoststring是Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001\)
apiKeystring否Dagster+ API token (leave blank for OSS / self-hosted)
assetKeystring是Slash-delimited asset key to wipe, e.g. "my_asset" or "raw/events"

输出

参数类型描述
successbooleanWhether the asset was wiped successfully
assetKeystringSlash-joined asset key that was wiped

On this page