I got a function app which can have a very long running operation. I am triggering it with an Azure yaml pipeline like this:
- task: AzureFunction@1
displayName: Run Dummy function
inputs:
function: '$(FunctionURL)/api/DummyFunction'
key: '$(FunctionKey)'
method: 'POST'
body: $(AzureFunctionBody)
waitForCompletion: 'true'
Every time I run the pipeline, it fails with an error message:
> Response Code: 0
> Response: An error was encountered while processing request. Exception:
> Exception Message: The request timed out after 60 seconds as no response was received. (type TimeoutException)
Even though I get an exception in the pipeline, the function app itself is being triggered and fully runs without any issues.
How can I make the pipeline wait for the function app to finish, even if it means waiting for hours?
2
Answers
You can use the job timeout setting to specify the limit in minutes for running the job – example:
Setting the value to zero means that the job can run:
I’m afraid that you won’t be able to change this timeout. Look at a post here in Developer Community