spectacles icon indicating copy to clipboard operation
spectacles copied to clipboard

Query results incorrectly assigned expired status by Looker API

Open joshtemple opened this issue 6 years ago • 1 comments

Looker's async multi_results endpoint occasionally reports the status of a running query as expired right before the query completes successfully. This causes spectacles to incorrectly mark the query as errored, when in fact, the query was successful.

In a previous change, we considered marking all expired queries as complete, but this becomes a problem if a query is killed manually (see report in #104) since it's subsequently marked as expired.

We will reach out to Looker to see if we can reproduce and fix the expired issue.

joshtemple avatar Nov 11 '19 22:11 joshtemple

Just had it happen on our instance:

Attempting to get results for 1 query tasks
Query task a607517addb9d3159300ee61d314e40e status is running
Attempting to get results for 1 query tasks
Query task a607517addb9d3159300ee61d314e40e status is expired
Attempting to get results for 1 query tasks
Query task a607517addb9d3159300ee61d314e40e status is error

iserko avatar Nov 13 '19 08:11 iserko

Checking in on this issue to confirm that this is still a problem in 2023. I'm seeing log patterns that look exactly like what iserko posted above, where a query goes from expired to error status.

joshtemple avatar May 08 '23 18:05 joshtemple