# If the function runs longer than 2 mins, it auto retries?

**URL:** <https://forum.serverless.com/t/if-the-function-runs-longer-than-2-mins-it-auto-retries/18182>\
**Category:** Serverless Framework\
**Tags:** lambda\
**Created:** [January 12, 2023, 1:46am UTC](https://forum.serverless.com/t/if-the-function-runs-longer-than-2-mins-it-auto-retries/18182 "2023-01-12T01:46:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![morgan-young1](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/morgan-young1/32/6852_2.png) [@morgan-young1](https://forum.serverless.com/u/morgan-young1)\
**Post date:** [January 12, 2023, 1:46am UTC](https://forum.serverless.com/t/if-the-function-runs-longer-than-2-mins-it-auto-retries/18182/1 "2023-01-12T01:46:40Z")

</div>

Hey everyone!

I’ve been using Serverless for a while but am having a problem here. My function is in python and appears to be duplicating every 2 minutes or so with different request ID’s.

I did some googling and it appears like this has something to do with a cli\_read\_timeout? But I am unsure how to change this with serverless… Any help would be much appreciated as I can’t use my function atm.

And yeah, I have changed the general timeout of the function to 15 mins. Thanks  
If it runs for under 2 mins, it’s fine. Thanks

 ![Screenshot from 2023-01-12 01-40-36](https://canada1.discourse-cdn.com/flex036/uploads/serverless/original/2X/3/3fc0bbeb2b903ba267d4c784468e6da254903516.png)
