-
Notifications
You must be signed in to change notification settings - Fork 356
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
Don't signal shutdown Cancellation Token when starting Drain Mode and include end to end tests #2795
Comments
Potentially related to #2776 |
@soninaren , what nuget version is this in? |
Should be version |
@soninaren , this affects us a lot in production with HttpTriggered functions. Is there at least an approximate estimate of when 3.0.33 can be released? |
@LeCamarade are you using the webjobs sdk or a function app. I think the function release is already in progress. |
@soninaren , we use a function app. If release is in progress, are we talking, days, weeks or months? |
Based on the current release progress it looks like it should be complete in a couple of weeks. |
Reactivating this because we're seeing inconsistent behavior across various extensions when drain is initiated. For example, the latest versions of both the Azure Queues and ServiceBus extensions trigger the cancellation token when drain is started. |
i've been using azure functions for going on 4 years and drain mode is still a mystery to me. I had incorrectly assumed that it WOULD send cancellation tokens and got really confused when it did for some extensions and not for others. Seems like some docs around drain mode are missing in the az function space and it should be encouraged for extensions to document their expected drain mode behaviour the recent "fix" in event hub extension pointed out IDrainModeManager which i had never come across in the Az functions docs. limited results from google on this, some appear to be completely wrong like https://learn.microsoft.com/en-us/answers/questions/770912/why-do-i-see-drainmode-mode-enabled-in-the-logs-an?source=docs
emphasis added. and https://datanrg.blogspot.com/2021/06/azure-function-drain-mode.html
|
@drdamour The intended behaviour for drain mode is:
I think there was some miscommunication on the intended behaviour which is why some extensions send a cancellation token and some don't, this is something that is actively being fix across the board. |
@liliankasem um.... then why is it being advertised for use in recent release notes? |
🤷♀️ news to me |
well...if it works as advertised it certainly fulfills a need i as an app developer have, though more in the durable functions space of knowing when my instance has entered drain mode. |
Customers don't expect a shut down Cancellation Token (related: #2782) when the host enters drain mode.
To ensure currently executing .NET in process functions are allowed to complete successfully we should not signal a host shutdown cancellation token when entering drain mode.
Also as part of the Drain Mode End to End Tests we should have one or more end to end tests that has:
Tasks
Status (12/06/2024)
The text was updated successfully, but these errors were encountered: