Replies: 1 comment 2 replies
-
@lilyjma I suspect you hit some kind of race condition where the "start" and "terminate" messages are racing with each other. I don't think it's very common for people to start and then terminate their orchestration in the same function, so I assume not many people run into this. It is odd, however, that the runtime status you get from What happens if you put an |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this code:
I went to the
statusQueryGetUri
url and saw that the runtime status is terminated. However, on Azure Portal, I still see the orchestration as running:Orchestration details show that the orchestration was terminated, but then started
@davidmrdavid explained that this is because
TerminateAsync
terminates running orchestrations, not scheduled ones. What the code above does is schedule an orchestration, then immediately terminates it. But at that point, there's no orchestration running yet, so there's nothing to terminate. And so what was originally scheduled would still run. Is this the expected behavior? How would I cancel a scheduled orchestration then?Beta Was this translation helpful? Give feedback.
All reactions