# Auto re-execute

**URL:** <https://community.activepieces.com/t/auto-re-execute/865>\
**Category:** Feature Requests (Old)\
**Created:** [October 17, 2023, 4:31pm UTC](https://community.activepieces.com/t/auto-re-execute/865 "2023-10-17T16:31:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evgeny](https://community.activepieces.com/user_avatar/community.activepieces.com/evgeny/32/632_2.png) [@Evgeny](https://community.activepieces.com/u/Evgeny)\
**Post date:** [October 17, 2023, 4:31pm UTC](https://community.activepieces.com/t/auto-re-execute/865/1 "2023-10-17T16:31:08Z")

</div>

## Auto re-execution

Plenty of API calls fail because the server on the other side is overloaded. e.g. anyone who ever worked with OpenAI knows those models often go 500 because they are overloaded. And very often, just repeating the same request straight away fixes the problem.

If we could add a setting to automatically re-execute a module (specifically yeying OpenAI upon failure), it would be help massively.

E

---

<div class="post-metadata">

**Author:** ![Bram](https://community.activepieces.com/user_avatar/community.activepieces.com/bram/32/2705_2.png) [@Bram](https://community.activepieces.com/u/Bram)\
**Post date:** [October 17, 2023, 9:34pm UTC](https://community.activepieces.com/t/auto-re-execute/865/2 "2023-10-17T21:34:07Z")

</div>

A workaround to fix this specific case, is to allow the chat gpt piece in your flow continue if it created an error, then put in a branch, which will trigger on the kind of response from the ChatGPT pieces, and you can recreate the same ChatGPT piece in the branch if the first one failed, probably can also do a second one, in this way you can prevent this issue from happening

---

<div class="post-metadata">

**Author:** ![jerbecca](https://community.activepieces.com/user_avatar/community.activepieces.com/jerbecca/32/925_2.png) [@jerbecca](https://community.activepieces.com/u/jerbecca)\
**Post date:** [October 19, 2023, 5:11pm UTC](https://community.activepieces.com/t/auto-re-execute/865/3 "2023-10-19T17:11:53Z")

</div>

This would be great. I left the following reply to a similar request here: [Retry after fail - #9 by jerbecca](https://community.activepieces.com/t/retry-after-fail/342/9)

"Yes, this is essential. If I’m building something that I’m charging a client for, I need to know that if there is a failure, the action will eventually be carried out. Zapier and others have similar fail-safes. For Zapier, it’s called “autoreplay” and it will only replay actions that fail due to a Stopped/Errored status.

This is one of the most important updates, in my opinion. Thanks for your consideration." 🙂

---

<div class="post-metadata">

**Author:** ![abuaboud](https://community.activepieces.com/user_avatar/community.activepieces.com/abuaboud/32/7285_2.png) [@abuaboud](https://community.activepieces.com/u/abuaboud)\
**Post date:** [March 3, 2024, 1:02am UTC](https://community.activepieces.com/t/auto-re-execute/865/4 "2024-03-03T01:02:59Z")

</div>

This is done, Please check this out [Error Handling: Auto Retry and Continue On Fail Options](https://community.activepieces.com/t/error-handling-auto-retry-and-continue-on-fail-options/2614/1)
