Last active
April 5, 2024 20:09
-
-
Save garethbrickman/c55afae54fbdb845b7f05d12636e1873 to your computer and use it in GitHub Desktop.
Dagster - example query for InstigationStateQuery
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
query InstigationStateQuery { | |
instigationStateOrError(instigationSelector: { | |
repositoryName: "__repository__", | |
repositoryLocationName: "data-eng-pipeline", | |
name: "orders_sensor" | |
}) { | |
__typename | |
... on InstigationState { | |
id | |
status | |
ticks(limit:1) { | |
timestamp | |
endTimestamp | |
} | |
runs(limit:1) { | |
id | |
status | |
} | |
} | |
... on PythonError { | |
message | |
stack | |
} | |
} | |
} |
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
query InstigationStateQuery($instigationSelector: InstigationSelector!) { | |
instigationStateOrError(instigationSelector: $instigationSelector) { | |
__typename | |
... on InstigationState { | |
id | |
status | |
ticks(limit:1) { | |
timestamp | |
endTimestamp | |
} | |
runs(limit:1) { | |
id | |
status | |
} | |
} | |
... on PythonError { | |
message | |
stack | |
} | |
} | |
} |
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
{ | |
"instigationSelector": { | |
"repositoryName": "__repository__", | |
"repositoryLocationName": "data-eng-pipeline", | |
"name": "orders_sensor" | |
} | |
} | |
# repositoryName = name of Repository | |
# repositoryLocationName = name of the Code Location | |
# name = name of the sensor/schedule | |
# if the Code location name is something like `foo@bar` then the repository name is "foo" and location name is "bar": {repository}@{location} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment