# How to change the 5 minute timeout interval for a async job?

**URL:** <https://forum.flowable.org/t/how-to-change-the-5-minute-timeout-interval-for-a-async-job/2295>\
**Category:** Flowable Engine\
**Created:** [July 30, 2018, 4:08pm UTC](https://forum.flowable.org/t/how-to-change-the-5-minute-timeout-interval-for-a-async-job/2295 "2018-07-30T16:08:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoheb](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/zoheb/32/337_2.png) [@zoheb](https://forum.flowable.org/u/zoheb)\
**Post date:** [July 30, 2018, 4:09pm UTC](https://forum.flowable.org/t/how-to-change-the-5-minute-timeout-interval-for-a-async-job/2295/1 "2018-07-30T16:09:00Z")

</div>

I noticed that sometimes one our jobs exceeds 5 minutes, and flowable ends up retrying the job and eventually leads to FlowableOptimisticLockingException.

How do I configure it to use a longer duration for lock\_exp\_time\_ in act\_ru\_job?

Thanks  
Zoheb

---

<div class="post-metadata">

**Author:** ![arpit.agrawal](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@arpit.agrawal](https://forum.flowable.org/u/arpit.agrawal)\
**Post date:** [August 1, 2018, 6:36am UTC](https://forum.flowable.org/t/how-to-change-the-5-minute-timeout-interval-for-a-async-job/2295/2 "2018-08-01T06:36:38Z")

</div>

Hi,

Look here : [https://www.flowable.org/docs/userguide/index.html#\_async\_executor\_configuration](https://www.flowable.org/docs/userguide/index.html#_async_executor_configuration)

for “asyncExecutorThreadKeepAliveTime” configuration. Hope it helps.

Thanks,  
Arpit Agrawal

---

<div class="post-metadata">

**Author:** ![zoheb](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/zoheb/32/337_2.png) [@zoheb](https://forum.flowable.org/u/zoheb)\
**Post date:** [August 1, 2018, 2:07pm UTC](https://forum.flowable.org/t/how-to-change-the-5-minute-timeout-interval-for-a-async-job/2295/3 "2018-08-01T14:07:47Z")

</div>

Thanks Arpit. But I looked around in the source code and it’s actually controlled by setTimerLockTimeInMillis in the AsyncExecutor configuration. Just posting this here for future reference for anyone else.

---

<div class="post-metadata">

**Author:** ![winay](https://avatars.discourse-cdn.com/v4/letter/w/8491ac/32.png) [@winay](https://forum.flowable.org/u/winay)\
**Post date:** [July 26, 2023, 7:52pm UTC](https://forum.flowable.org/t/how-to-change-the-5-minute-timeout-interval-for-a-async-job/2295/4 "2023-07-26T19:52:48Z")

</div>

You can set this property also : flowable.process.async.executor.async-job-lock-time
