Hello @Purav Upadhyay The error message you provided indicates that the function is timing out while waiting for the function start call. This is a common issue with Azure Functions, especially when using the isolated worker model.
To fix this issue, you can try the following:
- Increase the function's timeout value. You can do this by setting the
functionTimeout
property in thehost.json
file. For example, you can set it to 5 minutes like this:
{ "functionTimeout": "00:05:00" }
- Enable the
WEBSITE\_USE\_PLACEHOLDER
environment variable. This environment variable can help reduce cold-start times by pre-warming the function app. You can enable it by adding the following app setting to your function app:
{ "name": "WEBSITE_USE_PLACEHOLDER", "value": "1" }
- Use the
WEBSITE\_RUN\_FROM\_PACKAGE
environment variable. This environment variable can help reduce cold-start times by pre-warming the function app. You can enable it by adding the following app setting to your function app:
{ "name": "WEBSITE_RUN_FROM_PACKAGE", "value": "1" }
- Use the
WEBSITE\_ZIP\_DEPLOY\_SKIP\_DURABILITY
environment variable. This environment variable can help reduce cold-start times by skipping the durability checks during deployment. You can enable it by adding the following app setting to your function app:
{ "name": "WEBSITE_ZIP_DEPLOY_SKIP_DURABILITY", "value": "1" }
I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.