Skip to content

Is the a way to extend the shutdown timeout in Azure function so that the drain has enough time to finish? #9822

Open
@AlexPykavy

Description

@AlexPykavy

We use the Function App to process time-consuming operations including heavy database queries & sending large files to some 3rd party. We host them using dotnet-isolated runtime in Azure Kubernetes Services (AKS) using the official Docker image . Sometimes execution of the function takes 1-2 minutes and it's quite undesired to stop it in the middle of processing. It looks like the proper approach to maximize the chance that the function finishes the execution is to drain the function host on exiting.

After some research, I found that there is the FUNCTIONS_ENABLE_DRAIN_ON_APP_STOPPING environment variable enabling this feature but then I encountered another issues:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions