Last active
July 25, 2024 21:15
-
-
Save garethbrickman/62aa9c249a343c5e86b1b9626f50da12 to your computer and use it in GitHub Desktop.
Dagster - example GraphQL query for ScheduleDryRun
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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