Terminate & purge all running orchestrations #2029
Unanswered
cargilltay
asked this question in
Q&A
Replies: 1 comment 8 replies
-
I'm interested to understand why it takes so long to do the cleanup work in the HTTP function. Would you be able to share some code that you're using to do this? I'm wondering if it can be optimized somehow to run faster. A couple questions in the meantime:
|
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @cgillum we're also encountering a use case for full termination of all orchestrations on a project I'm working on. The scenario is the following:
A HTTP trigger hit.
A config is pulled which contains N number of routes.
An orchestration is started for each route. Each route restarts itself upon completion via
ContinueAsNew
.What we're trying to do:
Hit the same HTTP endpoint and teardown all executions, clear all history, clear all queues, and then start fresh with a new config.
What we're running into:
Doing a looped approach for termination takes too long for us. Local it seems to work after many minutes. Deployed we both hit the HTTP timeout limit on HTTP Triggers & other timeout limits on queues when we tried to offload this work to a queue.
Is it possible to accomplish the scenario I just described in an easy manner? Turning off the function app and deleting the storage tables/queues takes no time at all so I'd imagine a complete stop & clear must be feasible in code.
Beta Was this translation helpful? Give feedback.
All reactions