# Rerun Failed Job

**URL:** <https://forum.flowable.org/t/rerun-failed-job/5991>\
**Category:** Flowable Engine\
**Created:** [May 8, 2020, 6:21pm UTC](https://forum.flowable.org/t/rerun-failed-job/5991 "2020-05-08T18:21:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sd2040](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@sd2040](https://forum.flowable.org/u/sd2040)\
**Post date:** [May 8, 2020, 6:21pm UTC](https://forum.flowable.org/t/rerun-failed-job/5991/1 "2020-05-08T18:21:57Z")

</div>

Hi,  
I am using RuntimeService to trigger process .  
We have a use case where the process might fail in one of the service task because of bad data . User wants to have a capability to retrigger the failed process (to restart from the service task where it failed) after fixing the data . I want to build end point (using RuntimeService preferably) to do that .  
Any suggestion what will be best way of achieving that ( api/method etc ?)

Thanks,  
-Sarad

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [May 11, 2020, 2:28pm UTC](https://forum.flowable.org/t/rerun-failed-job/5991/2 "2020-05-11T14:28:59Z")

</div>

Hey @sd2040,

I think that you are looking for `ManagementService#moveJobToDeadLetterJob(String)`. Once a an async service task fails 3 (can be configured) times then a deal letter job is created. To continue the process you need to move the dead letter job to the executable.

Cheers,  
Filip

---

<div class="post-metadata">

**Author:** ![sd2040](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@sd2040](https://forum.flowable.org/u/sd2040)\
**Post date:** [May 11, 2020, 3:44pm UTC](https://forum.flowable.org/t/rerun-failed-job/5991/3 "2020-05-11T15:44:48Z")

</div>

Thanks @filiphr. I will test it out.

---

<div class="post-metadata">

**Author:** ![Viresh](https://avatars.discourse-cdn.com/v4/letter/v/6bbea6/32.png) [@Viresh](https://forum.flowable.org/u/Viresh)\
**Post date:** [October 28, 2021, 10:04am UTC](https://forum.flowable.org/t/rerun-failed-job/5991/4 "2021-10-28T10:04:44Z")

</div>

Hi @filiphr  
How to move dead letter jobs to the executable?

Thanks  
Viresh

---

<div class="post-metadata">

**Author:** ![amporsim](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@amporsim](https://forum.flowable.org/u/amporsim)\
**Post date:** [November 2, 2021, 9:07am UTC](https://forum.flowable.org/t/rerun-failed-job/5991/5 "2021-11-02T09:07:36Z")

</div>

Use:  
`ManagementService#moveDeadLetterJobToExecutableJob(String jobId, int retries)`
