Zach
06/24/2022, 5:40 PMquery RunsQuery(
$pipelineName: String
$limit: Int
) {
runsOrError (filter: {pipelineName: $pipelineName,}, limit: $limit) {
__typename
... on PythonError {
message
stack
}
... on Runs {
results {
runId
jobName
status
stats {
... on RunStatsSnapshot {
startTime
endTime
stepsFailed
}
}
}
}
}
}
variables = {"pipelineName": "job-to-search"}
I get this:
{
"error": "JSON.parse: unexpected character at line 1 column 1 of the JSON data"
}
the query does seem to take a while to return and maybe that's the problem, but it's unclear to me how to paginate through this endpoint because it seems that none of the response objects contain a cursor. this error also only occurs maybe 1/4 of the timedaniel
06/24/2022, 5:44 PMdaniel
06/24/2022, 5:45 PMZach
06/24/2022, 5:47 PMZach
06/24/2022, 5:47 PM