MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.3k stars 21.48k forks source link

Terminate orchestrations with sub-orchestrations #47800

Open nhwilly opened 4 years ago

nhwilly commented 4 years ago

I have a parent orchestration which calls multiple sub-orchestrations (it's a user interaction flow with multiple steps).

In my case, I wanted a want to simply terminate the sub-orchestrations that were in mid step waiting for user responses. I tried and it threw exceptions.

The solution was to terminate the parent orchestration first, then terminate any running or pending sub-orchestrations.

At that point, the exceptions stopped and I just ended up with warnings in the logs, which was fine.

This might be good addition to the docs.

HTH


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

mikeurnun commented 4 years ago

@nhwilly Thank you for your feedback! We have assigned this issue to the author to review further and take the right course of action.