Skip to content

Fix Terminating Pending Orchestrations#1256

Merged
sophiatev merged 2 commits into
mainfrom
stevosyan/fix-terminating-scheduled-orchestrations
Oct 21, 2025
Merged

Fix Terminating Pending Orchestrations#1256
sophiatev merged 2 commits into
mainfrom
stevosyan/fix-terminating-scheduled-orchestrations

Conversation

@sophiatev

@sophiatev sophiatev commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

Currently, if a user attempts to terminate a pending orchestration, nothing happens and the orchestration still starts once the ExecutionStartedEvent is picked up from the control queue. This PR enables terminating pending orchestrations in the Azure Storage backend by checking for this special case in LockNextTaskOrchestrationWorkItemAsync, and updating the status in storage to "Terminated" if it is detected.

Fixes #1255

@sophiatev
sophiatev merged commit b93b187 into main Oct 21, 2025
44 checks passed
@sophiatev
sophiatev deleted the stevosyan/fix-terminating-scheduled-orchestrations branch October 21, 2025 23:21
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

Successfully merging this pull request may close these issues.

Attempting to terminate a scheduled orchestration has no effect

2 participants