# 1h Timeout in Invoke Python Method Activity

**URL:** <https://forum.uipath.com/t/1h-timeout-in-invoke-python-method-activity/336833>\
**Category:** Activities\
**Tags:** completed, python, activities\
**Created:** [August 11, 2021, 11:01am UTC](https://forum.uipath.com/t/1h-timeout-in-invoke-python-method-activity/336833 "2021-08-11T11:01:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lhengel](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/lhengel/32/178923_2.png) [@lhengel](https://forum.uipath.com/u/lhengel)\
**Post date:** [August 11, 2021, 11:01am UTC](https://forum.uipath.com/t/1h-timeout-in-invoke-python-method-activity/336833/1 "2021-08-11T11:01:09Z")

</div>

Hi,

I wonder if it is possible to customize the timeout for running a python script via the Python Scope and Invoke Python Method Activity.

I have complex python script which runs longer than 1 hour some times, but when it does so there is a hard exit from the activity which I can not control.

Appreciate any help.

Best Regards

---

<div class="post-metadata">

**Author:** ![lhengel](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/lhengel/32/178923_2.png) [@lhengel](https://forum.uipath.com/u/lhengel)\
**Post date:** [August 11, 2021, 11:10am UTC](https://forum.uipath.com/t/1h-timeout-in-invoke-python-method-activity/336833/3 "2021-08-11T11:10:48Z")

</div>

> [@Load Python script timeout, python trigger alternatives](https://forum.uipath.com/t/load-python-script-timeout-python-trigger-alternatives/250869):
>
> Hi, I am trying to build an automated process that triggers a python script to connect to a database and perform operations. My issue is that the script by itself takes 4-5hrs to complete its functions, but the Load Script activity in UiPath times out after 1hr. I am at a loss as to how would I go about working around this. I don’t see an option in python activities to increase timeout. Any help would be appreciated. Thanks.

---

<div class="post-metadata">

**Author:** ![alexandru](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/alexandru/32/52917_2.png) [@alexandru](https://forum.uipath.com/u/alexandru)\
**Post date:** [August 11, 2021, 12:07pm UTC](https://forum.uipath.com/t/1h-timeout-in-invoke-python-method-activity/336833/5 "2021-08-11T12:07:17Z")

</div>

In the upcoming version of Python Activities we will have a Timeout property for the Python Scope activity. This new version will be released later this month.

 ![image](https://global.discourse-cdn.com/uipath/original/3X/4/f/4fafde5c073bb762a9597530ca459897d1a23e0d.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [August 24, 2021, 12:59pm UTC](https://forum.uipath.com/t/1h-timeout-in-invoke-python-method-activity/336833/6 "2021-08-24T12:59:24Z")

</div>

Closed on August 24, 2021, 12:59pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
