# Update asyncExecutorNumberOfRetries for flowable 6.1.2

**URL:** <https://forum.flowable.org/t/update-asyncexecutornumberofretries-for-flowable-6-1-2/7011>\
**Category:** Flowable Engine\
**Created:** [November 2, 2020, 12:20pm UTC](https://forum.flowable.org/t/update-asyncexecutornumberofretries-for-flowable-6-1-2/7011 "2020-11-02T12:20:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagar](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sagar](https://forum.flowable.org/u/sagar)\
**Post date:** [November 2, 2020, 12:20pm UTC](https://forum.flowable.org/t/update-asyncexecutornumberofretries-for-flowable-6-1-2/7011/1 "2020-11-02T12:20:54Z")

</div>

Hi All,

I am using flowable 6.1.2 and I want to update the engine configuration for number of retires for **asyncExecutorNumberOfRetries**.

Issue: I want to stop the process instance when having any kind of error,  
Description:  
I am using Intermediate timer catching event at the starting of the workflow, which holds the workflow for few minutes and then I have different service worker, now I want to handle the error case, where I have to stop the current process instance when any error occurs,

I have also checked that the default value is 3 and I want to set it to 1 so that I am able to stop the current process instance.

If you have any other solutions for stopping the current instance then also suggest me.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [November 9, 2020, 8:30am UTC](https://forum.flowable.org/t/update-asyncexecutornumberofretries-for-flowable-6-1-2/7011/2 "2020-11-09T08:30:14Z")

</div>

> [@sagar](#):
>
> I am using flowable 6.1.2 and I want to update the engine configuration for number of retires for **asyncExecutorNumberOfRetries**.

I would advise to update to the latest version (6.6.0 at the time of writing). That version you’re using is quite old and many improvements and fixes have been made since.

> [@sagar](#):
>
> I have also checked that the default value is 3 and I want to set it to 1 so that I am able to stop the current process instance.

You can configure the number of retries on engine configuration level.

> [@sagar](#):
>
> If you have any other solutions for stopping the current instance then also suggest me.

Typically this is solved by having an error catch event on the boundary of a subprocess (around all relevant steps) and throwing a BpmnError in the service task that went wrong.
