# Doubt on Later.py Module

**URL:** <https://forum.inductiveautomation.com/t/doubt-on-later-py-module/61104>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [June 23, 2022, 10:53am UTC](https://forum.inductiveautomation.com/t/doubt-on-later-py-module/61104 "2022-06-23T10:53:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amal\_Kottoor1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@Amal\_Kottoor1](https://forum.inductiveautomation.com/u/Amal_Kottoor1)\
**Post date:** [June 23, 2022, 10:53am UTC](https://forum.inductiveautomation.com/t/doubt-on-later-py-module/61104/1 "2022-06-23T10:53:30Z")

</div>

Hi Guys,  
So I am having a tag change client event scripts where I needed some delay, we used to do time.sleep() functionality before, but going through the posts in forum by @pturmel and others I understood that using Sleep() is a really bad idea. So I came across Later.py module made by Phil and started using the callLater() function.

```
        The function and the module are working fine in components, but I see the module not responding properly when used in client event scripts, like if I define a function with some tag reads and other functionality and then the tag reads are not happening properly. 

      Is it something that I alone is facing or is there some compatibility issue with client event scripts, because I saw similar issues while using invokeLater function in client event scripts

```

---

<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 23, 2022, 11:29am UTC](https://forum.inductiveautomation.com/t/doubt-on-later-py-module/61104/2 "2022-06-23T11:29:36Z")

</div>

Consider using try/except blocks in your troublesome scripts and a logger to report actions. (Some background scripts don’t print or report errors properly, but loggers work.)

Also, log the return values from `system.tag.write*()` operations.

{No need to start a new topic.}

---

<div class="post-metadata">

**Author:** ![Amal\_Kottoor1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@Amal\_Kottoor1](https://forum.inductiveautomation.com/u/Amal_Kottoor1)\
**Post date:** [June 23, 2022, 11:48am UTC](https://forum.inductiveautomation.com/t/doubt-on-later-py-module/61104/4 "2022-06-23T11:48:22Z")

</div>

Ok will do that, but the module should work fine with client event scripts right?

---

<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 23, 2022, 11:50am UTC](https://forum.inductiveautomation.com/t/doubt-on-later-py-module/61104/5 "2022-06-23T11:50:25Z")

</div>

Yup.

---

<div class="post-metadata">

**Author:** ![Amal\_Kottoor1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@Amal\_Kottoor1](https://forum.inductiveautomation.com/u/Amal_Kottoor1)\
**Post date:** [June 23, 2022, 11:57am UTC](https://forum.inductiveautomation.com/t/doubt-on-later-py-module/61104/6 "2022-06-23T11:57:21Z")

</div>

ok will do as you suggested and let you know, thanks for the support Phil.
