# Http Task not retrying

**URL:** <https://forum.flowable.org/t/http-task-not-retrying/5885>\
**Category:** Flowable Engine\
**Created:** [April 22, 2020, 7:13pm UTC](https://forum.flowable.org/t/http-task-not-retrying/5885 "2020-04-22T19:13:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MAGICBEANSS](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/magicbeanss/32/1926_2.png) [@MAGICBEANSS](https://forum.flowable.org/u/MAGICBEANSS)\
**Post date:** [April 22, 2020, 7:13pm UTC](https://forum.flowable.org/t/http-task-not-retrying/5885/1 "2020-04-22T19:13:15Z")

</div>

I have my http task like this

```
 <serviceTask id="sid-B8FC8019-55DA-4771-818C-A4B11CC3B66F" name="DEBIT CHECK STATUS" flowable:type="http">
        <extensionElements>
            <flowable:field name="requestMethod">
                <flowable:string><![CDATA[POST]]></flowable:string>
            </flowable:field>
            <flowable:field name="requestUrl">
                <flowable:expression><![CDATA[${debitstatuscheckurl}]]></flowable:expression>
            </flowable:field>
            <flowable:field name="requestHeaders">
                <flowable:expression><![CDATA[${debitstatucheckrequestheaders}]]></flowable:expression>
            </flowable:field>
            <flowable:field name="requestBody">
                <flowable:expression><![CDATA[${debitresponse}]]></flowable:expression>
            </flowable:field>
            <flowable:field name="requestTimeout">
                <flowable:string><![CDATA[600000]]></flowable:string>
            </flowable:field>
            <flowable:field name="responseVariableName">
                <flowable:string><![CDATA[debitstatuscheckresponse]]></flowable:string>
            </flowable:field>
            <flowable:field name="failStatusCodes">
                <flowable:string><![CDATA[400]]></flowable:string>
            </flowable:field>
            <flowable:failedJobRetryTimeCycle>R5/PT5S</flowable:failedJobRetryTimeCycle>
            <flowable:field name="saveResponseParameters">
                <flowable:string><![CDATA[true]]></flowable:string>
            </flowable:field>
            <flowable:field name="resultVariablePrefix">
                <flowable:string><![CDATA[debitstatuscheckresponseprefix]]></flowable:string>
            </flowable:field>
            <flowable:field name="saveResponseParametersTransient">
                <flowable:string><![CDATA[true]]></flowable:string>
            </flowable:field>
            <flowable:field name="saveResponseVariableAsJson">
                <flowa`b`le:string><![CDATA[true]]></flowable:string>
            </flowable:field>
        </extensionElements>
    </serviceTask>

```

Now when the api sends 400 , it does not retry this specific http task 5 times, as configured.

Rather it goes to the service task node which startted execution of this async executor and starts executing that , (I guess that’s happening because execution cycle is failing).

But still it should execute this http task 5 times with an interval of 5s , but not happening.  
Is there anything I am missing here?
