-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flex Consumption timer functions are killed #10527
Comments
Hi @konrad11901 Thanks for reporting I have checked and created same for run every min same funct it working fine. locally.can you check it again. |
@bhagyshricompany I checked that and locally it seems to be working fine. So it looks like the issue occurs only after deployment to Azure. |
Hi @konrad11901 Thanks for your patience can you check it again it seems working. |
@bhagyshricompany It's still not working for me for timer-triggered runs. The function starts, but it's being killed <1min after. |
can you try with some other plan like consumption and different region.please. |
@bhagyshricompany Sorry for a late response. A few days ago I deployed a new Flex Consumption function app in Sweden Central and it seems to work just fine (last 5 daily executions finished successfully). Other plans (Consumption, Premium, App Service Plan) were working always fine for us, this issue is specifically about Flex Consumption. For reference, here are the details about the Sweden Central app:
|
@satvu please comment.Thanks |
@pragnagopa and @paulbatum are investigating. |
I am having this issue on East US with a .NET 8 Isolated Flex Consumption function app that only has a single Timer function (there should only ever be 1 instance running). This is the order of operations of an unsuccessful run. First the Drain Mode message appears, then it calls Here's an unsuccessful run. The timestamps read bottom to top. Here's a successful run: |
We are having the same issues with both Queue and Timer triggers: All invocations get cancelled after a few seconds or sometimes even a minute, essentially our function apps are unusable. |
same here - it is durable function, net-isolated, sometimes killed while executing any of the app activities but when function wake up and above message is missing it starts again shortly but this redundant restart complicates my life Consumption AU-East |
I am also running into this issue. A TimerTrigger on a Flex Consumption function has its CancellationToken cancelled before the functionTimeout value of 1.5 hours. This happens anywhere between a few seconds and a few minutes. On the 20th of January there was a long stretch where cancellations were almost always at 2 minutes. Other triggers appear to be unaffected. |
Investigative information
Please provide the following:
Repro steps
Function source code
Program.cs
Package references
Expected behavior
Function execution finishes successfully.
Actual behavior
Function execution is being killed by the host within a minute of starting the function.
It looks like there is some scaling down involved (that's my guess based on DrainMode mention in logs), which kills the ongoing execution of the function?
Known workarounds
Manual rerun of the function seems to work.
Related information
We had this issue earlier too (back in August) - then a simple package update seemed to help as the functions were working fine till the beginning of October.
This issue is not occurring on the Consumption plan.
Programming language used: C#
Bindings used: Timer
Logs
The text was updated successfully, but these errors were encountered: