# Possible to cancel a queryTagHistory request from script?

**URL:** <https://forum.inductiveautomation.com/t/possible-to-cancel-a-querytaghistory-request-from-script/87072>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [March 8, 2024, 10:32pm UTC](https://forum.inductiveautomation.com/t/possible-to-cancel-a-querytaghistory-request-from-script/87072 "2024-03-08T22:32:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shawn\_Rieger1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shawn_rieger1/32/57040_2.png) [@Shawn\_Rieger1](https://forum.inductiveautomation.com/u/Shawn_Rieger1)\
**Post date:** [March 8, 2024, 10:32pm UTC](https://forum.inductiveautomation.com/t/possible-to-cancel-a-querytaghistory-request-from-script/87072/1 "2024-03-08T22:32:35Z")

</div>

I'm aware of canceling an active query from the gateway it was executed on, but is it possible to cancel it from a perspective client/session via script?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [March 8, 2024, 10:48pm UTC](https://forum.inductiveautomation.com/t/possible-to-cancel-a-querytaghistory-request-from-script/87072/2 "2024-03-08T22:48:54Z")

</div>

Generally speaking, no.

---

<div class="post-metadata">

**Author:** ![Shawn\_Rieger1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shawn_rieger1/32/57040_2.png) [@Shawn\_Rieger1](https://forum.inductiveautomation.com/u/Shawn_Rieger1)\
**Post date:** [March 9, 2024, 2:15am UTC](https://forum.inductiveautomation.com/t/possible-to-cancel-a-querytaghistory-request-from-script/87072/3 "2024-03-09T02:15:06Z")

</div>

it would be nice if we could provide an ID in the request that could be used afterwards to cancel it if need be.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 9, 2024, 2:35am UTC](https://forum.inductiveautomation.com/t/possible-to-cancel-a-querytaghistory-request-from-script/87072/4 "2024-03-09T02:35:14Z")

</div>

It's really hard to kill things in java without risking crashing the whole JVM. Arrange your bindings and scripts to only provide time spans and/or tag lists that won't swamp your gateway and database. If you are binding user input directly to query bindings (or scripts) without filtering through some kind of clipping or limiting, the results are on you.
