grafana / grafana-infinity-datasource

CSV, JSON, GraphQL, XML and HTML datasource for grafana.
https://grafana.com/docs/plugins/yesoreyeram-infinity-datasource
Apache License 2.0
733 stars 91 forks source link

Query cancellation: Correctly cancel queries #940

Closed ivanahuckova closed 2 months ago

ivanahuckova commented 2 months ago

Cancelling a query does not stop its execution due to missing NewRequestWithContext.

Testing:

Fix: Query cancellation now works correctly by using NewRequestWithContext. See attached logs for confirmation:

image

I have also lowered the levels of logged "errors", as we were getting error logs also for context.canceled. Switching to debug to reduce noise.