status
CLI module for querying and displaying the status of Merlin workflows.
This module defines two primary CLI command handlers:
-
StatusCommand: Handles thestatuscommand, which shows a high-level summary of the current state of a Merlin study or workflow. It supports querying status based on a Merlin YAML specification file or an existing study workspace, with options for output formatting and filtering. -
DetailedStatusCommand: ExtendsStatusCommandto provide a more granular, task-by-task view of the workflow status via thedetailed-statuscommand. This includes extensive filtering and display customization options.
DetailedStatusCommand
Bases: StatusCommand
Handles detailed-status CLI command for checking the in-depth status of a workflow.
Methods:
| Name | Description |
|---|---|
add_parser |
Adds the |
process_command |
Processes the CLI input and dispatches the appropriate action. |
Source code in merlin/cli/commands/status.py
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | |
add_parser(subparsers)
Add the detailed-status command parser to the CLI argument parser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
subparsers
|
ArgumentParser
|
The subparsers object to which the |
required |
Source code in merlin/cli/commands/status.py
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 | |
StatusCommand
Bases: CommandEntryPoint
Handles status CLI command for checking the high-level status of a workflow.
Methods:
| Name | Description |
|---|---|
add_parser |
Adds the |
process_command |
Processes the CLI input and dispatches the appropriate action. |
Source code in merlin/cli/commands/status.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | |
add_parser(subparsers)
Add the status command parser to the CLI argument parser.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
subparsers
|
ArgumentParser
|
The subparsers object to which the |
required |
Source code in merlin/cli/commands/status.py
process_command(args)
CLI command for querying the status of studies.
This function processes the given command-line arguments to determine the
status of a study. It constructs either a Status object
or a DetailedStatus object based on the specified
command and the arguments provided. The function handles validations for the task
server input and the output format specified for status dumping.
Object mapping
merlin status->Statusobjectmerlin detailed-status->DetailedStatusobject
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
args
|
Namespace
|
Parsed CLI arguments containing user inputs for the status query. |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
|