-
Type: Task
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Sharding EMEA 2022-12-12
The Sharding DDL Coordinator should support is the ability to gracefully terminate the workflow of a coordinator without running all the subsequent phases.
The typical use case can be described as:
- Suppose a workflow consisting of 3 phases, let say A, B and C.
- The phase A realizes that the execution of the workflow can be interrupted with Status::OK under a specific condition.
- Steps B and C must be skipped.
Today there are several solutions to implement this use case, however it would be useful that the infrastructure of the Sharding DDL Coordinator offers a facility to support the case in a standard way.
Ideally, it could sufficient to set a control flag (e.g, _completeWorkflow = true) to gracefully terminate the current workflow before completing the current phase.
If a good solution already exists using the current API, describe it on this ticket.