ReleaseAllResources#
The subarray Node provides API for ReleaseAllResources workflow.
The SubarrayNode accepts the command if :-
Admin mode reported by each of the system - CSP, SDP subarray are in ONLINE/ENGINEERING/RESERVED
Operational state of the SubarrayNode is ON/OFF/INIT/STANDBY/ALARM
The SubarrayNode rejects the command if :-
Admin mode reported by each of the system - CSP, SDP subarray are in OFFLINE or NOT FITTED.
Operational state of central node is FAULT/UNKNOWN/DISABLE .
The following state requirements are applied for the command execution :-
TMC Subarray is in ‘observation state’ EMPTY or IDLE .
isSubarrayAvailable is checked to ensure the subsystems (CSP, SDP and MCCS) are available
- The command execution involves below key operations :-
Only for MCCS, interface is added in input JSON. For CSP and SDP, no JSON is sent to leaf nodes.
The command is then invoked on the relevant TMC CSP, SDP, MCCS leaf Nodes.
If leaf node rejects release resources command , command failure is reported as ‘RESULT_CODE - FAILED’ on Long Running Command Result attribute of the TMC Subarray node.Command will not be sent to remaining subsystems in this case if multiple subsystems are involved .
If all leaf node accept command , the TMC Subarray node will wait for command completion.
The SubarrayNode monitors the progress of command via the SubarrayNode ObsState transitions and the long running command results.
Command is successful when the TMC Subarray Node transitions to EMPTY ObsState. This is reported as ‘RESULT_CODE - OK’ on Long Running Command Result attribute of the Subarray node.
Command failure is reported in any of the below cases as ‘RESULT_CODE - FAILED’ on Long Running Command Result attribute of the Subarray node.
The CSP Leaf node/SDP Leaf node/MCCS Leaf node reports ‘RESULT_CODE - FAILED’ on its Long Running Command Result attribute
The command times out if TMC SubarrayNode does not transition to EMPTY within the timeout period specified by CommandTimeOutDefault property specified in helm chart of the TMC Subarray node .
On success the system is ready for fresh observation; on failure it may revert to IDLE or FAULT depending on severity.
When all targeted subsystems report successful completion, cleanup on the TMC subarray node proceeds.Stored science block ID, subarray ID, and internal resource caches are cleared. Assigned resources attribute is reset.