Binoy Shah
08/29/2023, 10:05 PMTodd de Quincey
08/30/2023, 6:01 AMquery FilteredRunsQuery {
runsOrError(filter: { statuses: [SUCCESS], pipelineName: "my_job_name_goes_here" }) {
__typename
... on Runs {
results {
runId
jobName
status
runConfigYaml
startTime
endTime
}
}
}
}
Todd de Quincey
08/30/2023, 6:03 AM{
"data": {
"runsOrError": {
"__typename": "Runs",
"results": [
{
"runId": "b73b1b20-46d5-4efa-a47d-a73bb207ddf9",
"jobName": "my_job_name_goes_here",
"status": "SUCCESS",
"runConfigYaml": "{}\n",
"startTime": 1693238409.189392,
"endTime": 1693238566.937148
},
...
...
Binoy Shah
08/30/2023, 1:59 PMSUCCESS
is correct, but for next future run, QUEUED, NOT_STARTED, STARTING
will not work, because if the schedule is for next day or day after, the tick has not been created or added and so there will be no DB entry to check that