Handling cancel in datasource plugin?

When a query is canceled by the user, is it possible to know about this in a datasource plugin, so I can handle it gracefully? Nothing popped out at me when I looked for it.

Ideally, I’d like to be able to do some cleanup, specifically make one additional backend API call to cancel a request.

Possible? Thanks in advance!!

2 Likes

Hey, did you find any solution?
I have the same problem.

Nope, unfortunately I didn’t find a solution, and nobody else replied. Hard to imagine we’re the only ones wondering about this.

Maybe somebody from Grafana will see this and add a cancel hook to the SDK.