-
Notifications
You must be signed in to change notification settings - Fork 272
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
Singleton Orchestration completes, but status stuck in pending #1180
Comments
Hey @jublair, sorry for the delayed response! This seems to be a known issue where two orchestrators with the same instanceId are being started at the exact same time. This can lead to the status being overridden and other weird behavior. |
Thanks for the information, @amdeel! Out of question, are there any appropriate workarounds to this issue at this time? |
@jublair, You could workaround this yourself in the meantime with the use of a blob lease. Have a blob with the name of your singleton instance (i.e. |
Also, if you have a single client function that starts your singleton instance, you may be able to use the |
Sounds good, thanks Connor. We actually used to use both of these methods, but moved to Azure Durable Functions hoping to slim down our tech stack :D we haven't encountered this issue in a while, but we'll give your suggestions a shot if we continue to experience issues. |
Description
A singleton orchestration I'm invoking appears to be stuck in pending, despite having run to completion. This is leading to an issue where our client is not starting a new timer instance of the singleton orchestration, since we do not run
starter.StartNewAsync
when an orchestration is pending.Expected behavior
Orchestration should appear as completed/failed after execution terminates.
Actual behavior
Orchestration appears to be pending.
Relevant source code snippets
The function is quite simple and does nothing but call an underlying activity function. We're working on refactoring the code base to remove this redundant layer.
Known workarounds
We currently manually re-deploy the application or manually change the instance tables. No automatic workaround is currently employed.
App Details
Screenshots
Here's the affected orchestration's history:
and here's how it looks on the instances table:
If deployed to Azure
The text was updated successfully, but these errors were encountered: