Skip to content

Instantly share code, notes, and snippets.

@garethbrickman
Last active July 25, 2024 21:15
Show Gist options
  • Save garethbrickman/62aa9c249a343c5e86b1b9626f50da12 to your computer and use it in GitHub Desktop.
Save garethbrickman/62aa9c249a343c5e86b1b9626f50da12 to your computer and use it in GitHub Desktop.
Dagster - example GraphQL query for ScheduleDryRun
Note that:
- repositoryName = name of the Repository (if none, use "__repository__")
- repositoryLocationName = name of the Code Location
If the Code location name is something like "foo@bar" then this represents {repository}@{location}
i.e. the repository name is "foo" and location name is "bar".
mutation ScheduleDryRun {
scheduleDryRun(
selectorData: {
repositoryName: "__repository__",
repositoryLocationName: "gary_test_code_location",
scheduleName: "all_assets_job_schedule"
},
timestamp: 1712944243 # Replace with the desired Unix timestamp
) {
__typename
... on DryRunInstigationTick {
timestamp
evaluationResult {
runRequests {
runKey
tags {
key
value
}
runConfigYaml
assetSelection {
path
}
jobName
}
}
}
... on PythonError {
message
stack
}
... on ScheduleNotFoundError {
message
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment