ska_oso_pdm.entities.common.procedures
The procedures modules models SB entities concerned with the script execution requirements. This includes the scripts that should process the SB and the git identifier, including the repository and branch. The contents of the modules are presented in the diagram below.
An example serialisation of this model to JSON is shown below.
# JSON modelled specifically by procedures
...
"activities":{
"allocate": {
"procedure_type": "filesystemscript",
"path": "/path/to/allocatescript.py",
"function_args": {
"init": {"args": ["posarg1","posarg2"],
"kwargs": {"argname": "argval"}
},
"main": {
"args": ["posarg1","posarg2"],
"kwargs": {"argname": "argval"
}
}
}
},
"observe": {
"procedure_type": "gitscript",
"path": "/relative/path/to/scriptinsiderepo.py",
"repo": "https://gitlab.com/script_repo/operational_scripts",
"branch": "main",
"function_args": {
"init": {"args": ["posarg1","posarg2"],
"kwargs": {"argname": "argval"}
},
"main": {
"args": ["posarg1","posarg2"],
"kwargs": {"argname": "argval"
}
}
}
}
}
The entities.common.procedures module defines a Python representation of the procedures listed in the activities of the SKA scheduling block.
- class FilesystemScript(path: str, function_args: Optional[Dict[str, PythonArguments]] = None)[source]
Represents an FilesystemScript to be run as an activity in an SKA scheduling block.