oks_parser
drunc.process_manager.oks_parser
Functions
collect_apps(config_filename, session_name, session_dal_obj, segment_obj, env, tree_prefix=[0])
! Recustively collect (daq) application belonging to segment and its subsegments
@param session_dal_obj The session the segment belongs to @param segment_obj Segment to collect applications from
@return The list of dictionaries holding application attributs
Source code in drunc/process_manager/oks_parser.py
142 143 144 145 146 147 148 149 150 151 152 153 154 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 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 | |
collect_infra_apps(session, env, tree_prefix)
! Collect infrastructure applications
@param session The session
@return The list of dictionaries holding application attributs
Source code in drunc/process_manager/oks_parser.py
collect_variables(variables, env_dict)
!Process a dal::Variable object, placing key/value pairs in a dictionary
@param variables A Variable/VariableSet object @param env_dict The desitnation dictionary
Source code in drunc/process_manager/oks_parser.py
component_disabled_from_session_dal(session_dal_obj, component_id)
Replaces the following without any db dependence confmodel_dal.component_disabled(db._obj, session_dal_obj.id, component_id)
Uses only the Session DAL object (session_dal_obj) and the component UID.
Semantics
- Returns True if the component UID is explicitly present in session_dal_obj.disabled
- Returns False otherwise
Notes
- This matches the common meaning of 'disabled' in OKS configs as exposed via conffwk.dal.Session.disabled.
- It does not attempt to infer disabled state via parent/child propagation rules that may exist in confmodel C++ (if any).
Source code in drunc/process_manager/oks_parser.py
get_full_db_path(db_path)
Find the path of the DB
Parse through the DUNEDAQ_DB_PATH, look for the passed file. If it exists, return the full path. Otherwise, raise an error.
Raise an error if multiple values match the parameter.