Skip to content
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

Need help : Is it possible to cancel(or reschedule at different time) orchestration when in Pending state? #662

Open
vipul0517 opened this issue Jan 6, 2022 · 3 comments

Comments

@vipul0517
Copy link

We have a scheduler using DTF, CreateScheduledOrchestrationInstanceAsync(Type orchestrationType, string instanceId, object input, DateTime startAt) is used to schedule orchestration. The issue is that once orchestration is scheduled and in Pending state, is it possible to override scheduled time. Have tried to use CreateScheduledOrchestrationInstanceAsync again with different time and same instanceid but then orchestration is getting executed at both the times (old and new/updated)

any idea on how to fix this?

@vipul0517 vipul0517 changed the title Is it possible to cancel(or reschedule at different time) orchestration when in Pending state? Need help : Is it possible to cancel(or reschedule at different time) orchestration when in Pending state? Jan 6, 2022
@cgillum
Copy link
Member

cgillum commented Jan 6, 2022

Just for my curiosity, which orchestration service are you using? I ask because this behavior can vary between the different implementations.

To answer your question, I don't believe it's possible to reschedule an orchestration when it's in the Pending state. I think this would need to be a new feature that gets implemented by each orchestration service.

@vipul0517
Copy link
Author

AzureStorageOrchestrationService, have tried to use ForceTerminateTaskOrchestrationAsync(string instanceId, string reason) but it can terminate/cancel only running orchestration, is that correct?

@cgillum
Copy link
Member

cgillum commented Jan 6, 2022

Correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants