-
Notifications
You must be signed in to change notification settings - Fork 55
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
Timer tasks no longer cancelable #322
Comments
Hi @m1stermanager, Thank you so much for reaching out. Indeed, I think you've stumbled upon a recent regression that I accidentally introduced in a recent major refactor of the codebase. We recently changed the way that |
@davidmrdavid Thanks so much for the response! I'll keep an eye out for that release. |
Hi @m1stermanager, we just released a new version of this SDK (v1.1.2) which should have patched this issue. Can you please install it and let us know if this issue continues? Thanks! PyPI link - https://pypi.org/project/azure-functions-durable/1.1.2/ |
thanks so much. i'll check this out right now |
looks great to me! thank so much for the quick patch! |
Great to hear! Please do reach out again if any issues come up, I'll be closing this issue in the meantime :) |
awesome. the only thing i noticed (just now of course), is the type hint on create_timer is still a TaskBase, but that only affects intellisence etc. Thanks again for the patch! |
Ah, that's a good catch, thanks! Just so we can track it, could you please file another issue noting this? Thanks again :-) |
oh yeah I can do that! |
🐛 Describe the bug
In all durable function documentation referencing timers (including in this repo's code samples) timeout-able orchestrations contain a snippet like:
(from https://github.com/Azure/azure-functions-durable-python/blob/dev/samples/human_interaction/E4_SMSPhoneVerification/__init__.py#L38)
When using the same technique, there is not a
is_completed
property, and there is nocancel
method. The alternative would appear to bestate
andchange_state
respectively.... but I would need some confirmation on this... and some docs would need to be updated (I would be more than willing to open some PRs across the appropriate repos)Hopefully this is enough detail... I attempted to find some change that removed this method in the history but could not find one, nor a replacement method on the DurableOrchestrationContext but could not.
🤔 Expected behavior
I guess I expected the methods to be present.... if not in the type hints at least on the object, however the code fails as given in examples
☕ Steps to reproduce
when running this locally w/ the following versions according to
pip freeze
any attempt to use the timer from a DurableOrchestrationContext.
my code, with extraneous bits removed looks like:
⚡If deployed to Azure
N/A
The text was updated successfully, but these errors were encountered: