Home > Back-end >  How to enable Fire and Forget/Asynchronous pattern on Logic App HTTP Trigger/Action?
How to enable Fire and Forget/Asynchronous pattern on Logic App HTTP Trigger/Action?

Time:10-01

I have an Azure logic app that just calls an HTTP endpoint, I don't want to wait for a response as this is triggering a long-running task.

But currently, it waits for the response and fails with a timeout error.

How can I fire and forget the endpoint ( and still have logic app status successful)?

enter image description here

Thanks

CodePudding user response:

You can make Logic App behavior Asynchronous or Fire and Forget by enabling Asynchronous Response setting on the Response action.

HTTP_Response

HTTP_Response_Setting

UPDATE 1

By default, HTTP action is synchronous, you can enable enter image description here

CodePudding user response:

You could use Event grid Trigger and webhook to get long running process response as below:

enter image description here

As event trigger has a retry policy

Where it first waits for 10 sec response, then 30 sec then 1min until 24 hrs time and we can also set the retry policy too.

Another way is to on asynchronous response to get 202 Response.

Webhook Event Delivery.

  • Related