Details
-
Task
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
None
-
None
-
Sharding EMEA 2022-12-12
Description
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.