==================== Abort ==================== 1. MCCS Subarray Leaf Node provides API for the Abort workflow. 2. The TMC MCCS Leaf Node accepts the command if: a. MCCS Subarray is in observation state SCANNING, CONFIGURING, IDLE, READY, or RESOURCING. b. MCCS Subarray is responsive.(:ref:`availablity`) 3. The TMC MCCS Leaf Node rejects the command if: a. MCCS Subarray is not in the required observation state. b. MCCS Subarray is not responsive. 4. The command execution involves the following key operations: a. The command is invoked on the MCCS Master if the MCCS Subarray is in RESOURCING: i. If MCCS Subarray rejects the command, failure is reported as '**RESULT_CODE - FAILED**' on the **Long Running Command Result** attribute of the TMC MCCS Leaf Node. ii. If MCCS Subarray accepts the command, the TMC MCCS Leaf Node waits for command completion. b. The command is invoked on the MCCS Subarray in other allowed observation states (CONFIGURING, IDLE, READY, SCANNING): i. If MCCS Subarray rejects the command, failure is reported as '**RESULT_CODE - FAILED**' on the **Long Running Command Result** attribute of the TMC MCCS Leaf Node. ii. If MCCS Subarray accepts the command, the TMC MCCS Leaf Node waits for command completion. 5. The TMC MCCS Leaf Node monitors the progress of the command via **Long Running Command Result**: a. Command is **successful** when the MCCS Subarray node transitions to ABORTED observation state. This is reported as '**RESULT_CODE - OK**' on the **Long Running Command Result** attribute of the TMC MCCS Subarray leaf node. b. Command failure is reported in any of the following cases as '**RESULT_CODE - FAILED**' on the **Long Running Command Result** attribute of the MCCS Subarray leaf node: i. The MCCS Subarray reports '**RESULT_CODE - FAILED**' on its **Long Running Command Result** attribute. ii. The command times out if the MCCS Subarray node does not transition to ABORTED observation state within the timeout period specified by the **CommandTimeOutDefault** property in the Helm chart of the TMC MCCS Leaf Node.