# Way to hide "Executing Task" popup for system.util.sendRequest?

**URL:** <https://forum.inductiveautomation.com/t/way-to-hide-executing-task-popup-for-system-util-sendrequest/48072>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [June 22, 2021, 5:27pm UTC](https://forum.inductiveautomation.com/t/way-to-hide-executing-task-popup-for-system-util-sendrequest/48072 "2021-06-22T17:27:34Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [June 22, 2021, 5:27pm UTC](https://forum.inductiveautomation.com/t/way-to-hide-executing-task-popup-for-system-util-sendrequest/48072/1 "2021-06-22T17:27:34Z")

</div>

I have a script that runs on the gateway that involves going through a lot of folders and comparing them to folders we expect. Depending on the depth this can take a few minutes. I had not used `system.util.sendRequest` and thought it would be easier than sending a message to the gateway, and the sending one back, and setting up a client event handler. I was not expecting this to show up though which seems to kind of defeat the purpose of having it run on gateway out of sight and mind of the client user.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/3/b32510c821bcdce3312e8f1418e570d01a025fc2.png)

Is there a way to disable this popup from showing? Or to get around this must I necessarily have the gateway send a message back to a client message handler?

---

<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:** [June 22, 2021, 5:31pm UTC](https://forum.inductiveautomation.com/t/way-to-hide-executing-task-popup-for-system-util-sendrequest/48072/2 "2021-06-22T17:31:32Z")

</div>

You should not be running sendRequest in the foreground. Use system.util.invokeAsynchronous().

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [June 22, 2021, 5:31pm UTC](https://forum.inductiveautomation.com/t/way-to-hide-executing-task-popup-for-system-util-sendrequest/48072/3 "2021-06-22T17:31:46Z")

</div>

I am. This is my code

```auto
payload = {"level":event.source.parent.level}
project="PSM4_Project"
messageHandler="ExamineNASFolders"

def runCheck():
	results=system.util.sendRequest(project,messageHandler,payload,timeoutSec=180)
	print results
	def reportToGui(results):
		if "err" in results.keys():
			system.gui.warningBox("Error running customer check, tell Brian")
		else:
			system.gui.messageBox("Completed customer check")
system.util.invokeAsynchronous(runCheck)

```

Ignore the reportToGui part, didn’t even invokeLater it as this issue started.

I am using 8.0.17.

---

<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:** [June 22, 2021, 5:32pm UTC](https://forum.inductiveautomation.com/t/way-to-hide-executing-task-popup-for-system-util-sendrequest/48072/4 "2021-06-22T17:32:11Z")

</div>

~~Show your code.~~

---

<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:** [June 22, 2021, 5:34pm UTC](https://forum.inductiveautomation.com/t/way-to-hide-executing-task-popup-for-system-util-sendrequest/48072/5 "2021-06-22T17:34:55Z")

</div>

Hmm. Haven’t run into this. Version?

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [June 22, 2021, 5:35pm UTC](https://forum.inductiveautomation.com/t/way-to-hide-executing-task-popup-for-system-util-sendrequest/48072/6 "2021-06-22T17:35:24Z")

</div>

8.0.17. This particular test runs pretty quickly too, under 5 seconds for the most part, and it still pops up.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [June 22, 2021, 5:45pm UTC](https://forum.inductiveautomation.com/t/way-to-hide-executing-task-popup-for-system-util-sendrequest/48072/7 "2021-06-22T17:45:11Z")

</div>

Given this

> [@Not showing popup Executing task with system.util.sendRequest](http://forum.inductiveautomation.com/t/not-showing-popup-executing-task-with-system-util-sendrequest/23386):
>
> When I use system.util.sendRequest, I don’t want to show the popup Executing task in order to prevent the user to cancel the task. Is it possible ?

Was never answered, I assume that it probably cannot be done and I must use sendMessage to the gateway and send message back to the appropriate client.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [June 22, 2021, 6:17pm UTC](https://forum.inductiveautomation.com/t/way-to-hide-executing-task-popup-for-system-util-sendrequest/48072/8 "2021-06-22T18:17:31Z")

</div>

Yes, [system.util.sendMessage](https://docs.inductiveautomation.com/display/DOC81/system.util.sendMessage) enable to avoid the message popup.

---

<div class="post-metadata">

**Author:** ![stephen.wratten](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@stephen.wratten](https://forum.inductiveautomation.com/u/stephen.wratten)\
**Post date:** [June 22, 2021, 8:55pm UTC](https://forum.inductiveautomation.com/t/way-to-hide-executing-task-popup-for-system-util-sendrequest/48072/9 "2021-06-22T20:55:56Z")

</div>

You can use [system.util.sendRequestAsync](https://docs.inductiveautomation.com/display/DOC81/system.util.sendRequestAsync) to make the request/response interaction easier and prevent that popup. You just have to modify your logic a little bit to do:

```auto
handle = system.util.sendRequestAsync(project,messageHandler,payload,timeoutSec=180)
results = handle.get()

```

to get your results instead. It has some other nice convenience methods as well that you should be able to use to refactor that chunk of code.

---

<div class="post-metadata">

**Author:** ![sherman](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@sherman](https://forum.inductiveautomation.com/u/sherman)\
**Post date:** [March 27, 2026, 9:53pm UTC](https://forum.inductiveautomation.com/t/way-to-hide-executing-task-popup-for-system-util-sendrequest/48072/10 "2026-03-27T21:53:54Z")

</div>

I have run into this issue as well on 8.1.41 also, using sendRequest. Switching to `system.util.sendRequestAsync` solved my problem although when adding `handle.get()` it moves the blocking back into the main gui thread so that entire function call then needs to be called with `system.util.invokeAsynchronous`. You have to async your async to be really async

---

<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 27, 2026, 11:11pm UTC](https://forum.inductiveautomation.com/t/way-to-hide-executing-task-popup-for-system-util-sendrequest/48072/11 "2026-03-27T23:11:18Z")

</div>

For what it's worth, this is fixed in 8.3. `sendRequest` will not show a blocking progress dialog.
