Continue the work on another logic app.
Just change your logic app to return Accepted/OK response and calls the function.
The function does the work and after it finishes (or fails) it calls another logic app where it continues the work (or deal with the error).
I am trying to trigger an Azure Function from Logic Apps. Running the Azure function takes more than 2 minutes as it is reading a file from a location, converts it to another format and then writes it to a different location. The problem is that the Logic Apps is creating a request, waits for 2 minutes to get a response, but this response doesn't come because the function is not finishing that fast. So the logic app assumes there is an error and recreates the request.
I read in the documentation that there is no way to increase the timeout period. I tried creating two threads in the azure function. One returns 202 http status code to the logic app, and the other one would remain as a daemon and keeps running. But the file doesn't seem to be copied.
Does anyone have any idea how could this be achieved?
Triggering an Azure Function that takes more than 2 minutes to run from logic apps