Azure / durabletask

Durable Task Framework allows users to write long running persistent workflows in C# using the async/await capabilities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to pause and resume orchestration

msoliman85 opened this issue · comments

commented

I am attempting to create an orchestration with long running tasks but I need the ability to pause the orchestration until an event is raised to continue the execution of the orchestration at a later time. Is this possible with the framework?

You can try the SuspendInstanceAsync and ResumeInstanceAsync methods in TaskHubClient and see if it fits your use case. You just need the instanceId of the executing orchestration.

You can try this out with samples in https://github.com/kaushiksk/durabletask-samples