Jose Estudillo
12/28/2022, 5:37 PMhooks
or run_failure_sensor
there are for jobs/ops. What is the best Approach for this?query RunsQuery {
sensorsOrError(repositorySelector: {
repositoryName: "*",
repositoryLocationName: "*"}
) {
__typename
... on Sensors {
results {
name
}
}
}
}
daniel
12/28/2022, 5:47 PMinstigationStateOrError(instigationSelector: $instigationSelector) {
__typename
... on InstigationState {
id
instigationType
nextTick {
timestamp
}
ticks(dayRange: $dayRange, limit: $limit, cursor: $cursor, statuses: $statuses) {
id
status
timestamp
cursor
skipReason
runIds
error {
message
}
}
}
}
the instigation selector has these fields (name is the name of the sensor): https://github.com/dagster-io/dagster/blob/1c5733d4091d56d71ee1fd94f0ce66a42a13b1a[…]python_modules/dagster-graphql/dagster_graphql/schema/inputs.pyJose Estudillo
12/28/2022, 5:49 PMdaniel
12/28/2022, 5:50 PMJose Estudillo
12/28/2022, 5:51 PMinstigationStateOrError(instigationSelector: {
repositoryName: "default",
repositoryLocationName: "default",
name:""
})
*
doesn’t seem to workdaniel
12/28/2022, 6:15 PM