# Load Python script timeout, python trigger alternatives

**URL:** <https://forum.uipath.com/t/load-python-script-timeout-python-trigger-alternatives/250869>\
**Category:** Activities\
**Tags:** pr-welcome, python, activities\
**Created:** [September 9, 2020, 9:31am UTC](https://forum.uipath.com/t/load-python-script-timeout-python-trigger-alternatives/250869 "2020-09-09T09:31:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pallav\_Negi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/pallav_negi/32/60108_2.png) [@Pallav\_Negi](https://forum.uipath.com/u/Pallav_Negi)\
**Post date:** [September 9, 2020, 9:31am UTC](https://forum.uipath.com/t/load-python-script-timeout-python-trigger-alternatives/250869/1 "2020-09-09T09:31:17Z")

</div>

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:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [September 10, 2020, 2:48pm UTC](https://forum.uipath.com/t/load-python-script-timeout-python-trigger-alternatives/250869/2 "2020-09-10T14:48:18Z")

</div>

Hi @Pallav_Negi

Welcome to our UiPath Forum! 🙂

First things first - the Python activity package is open sourced here, so if you have the knowledge, you might be able to see exactly what is possible there:

> **[Community.Activities/Activities/Python at master · UiPath/Community.Activities](https://github.com/UiPath/Community.Activities/tree/master/Activities/Python)**
>
> master/Activities/Python

I’ll also mark it as #pr-welcome for other users to easily find this topic and maybe help you out.

As to the issue you are encountering, the solution might be to split your operations into multiple stages. A bit annoying, but it is probably the way to go here.

---

<div class="post-metadata">

**Author:** ![shonexuyong](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/shonexuyong/32/176817_2.png) [@shonexuyong](https://forum.uipath.com/u/shonexuyong)\
**Post date:** [October 26, 2020, 5:23am UTC](https://forum.uipath.com/t/load-python-script-timeout-python-trigger-alternatives/250869/3 "2020-10-26T05:23:34Z")

</div>

Hi, I have the same issue. My python script is a package to do some fuzzy matching on text which cannot be separated. It will take about 2-3 hours to finish but UiPath seems to report the timeout issue but i cannot actually find the timeout parameters for me to adjust timeout limit in the Python scope. any advice

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [February 25, 2021, 1:31pm UTC](https://forum.uipath.com/t/load-python-script-timeout-python-trigger-alternatives/250869/5 "2021-02-25T13:31:21Z")

</div>

Hi @Pallav_Negi

One of the next versions will have a timeout property for the Python scope that will allow you to configure it. Until then, the timeout is indeed hardcoded.

---

<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:05am UTC](https://forum.uipath.com/t/load-python-script-timeout-python-trigger-alternatives/250869/6 "2021-08-11T11:05:06Z")

</div>

Hi @loginerror,

is there a time plan for a new version to solve this issue?

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [August 24, 2021, 3:51pm UTC](https://forum.uipath.com/t/load-python-script-timeout-python-trigger-alternatives/250869/7 "2021-08-24T15:51:55Z")

</div>

Hi @lhengel

The latest version of the Python activity package allows you to set any timeout you wish 🙂

---

<div class="post-metadata">

**Author:** ![b.forbes](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/b.forbes/32/267780_2.png) [@b.forbes](https://forum.uipath.com/u/b.forbes)\
**Post date:** [December 1, 2022, 2:36pm UTC](https://forum.uipath.com/t/load-python-script-timeout-python-trigger-alternatives/250869/8 "2022-12-01T14:36:35Z")

</div>

What unit of time is the timeout in python scope settings?

It says InArgmuent - do I need to assign an amount of time to a variable for that?

![image](https://global.discourse-cdn.com/uipath/original/4X/d/7/4/d742acbb1723312845f1072ba4875349153dfc21.png)

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [December 1, 2022, 3:48pm UTC](https://forum.uipath.com/t/load-python-script-timeout-python-trigger-alternatives/250869/9 "2022-12-01T15:48:39Z")

</div>

Hi @b.forbes

Given that this package is open-sourced, I checked and it looks like it is in seconds. I created a small task for our team to update both the activity description and our documentation.  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/5/b/9/5b973579745a0b00f623843cb3531153673b5cc8.png)

Thank you for pointing it out 🙂
