ska_sdp_piper.app.executable_pipeline module

class ska_sdp_piper.app.executable_pipeline.ExecutablePipeline(pipeline_name, script_path=None)[source]

Bases: object

Creates an executable instance from the pipeline definition

_script_path

Path to the pipeline definition

Type:

str

installable_pipeline

The pipeline definition loaded as a module

Type:

module

executable_content

The content of the executable file

Type:

str

validate_pipeline()[source]

Validates if the pipeline definition is syntactically correct python code.

Raises:
  • Compilation error based on python interpretor. --

  • PipelineNotFoundException if the provided pipeline name -- doesn't exist

install()[source]

Installs the executable script containing the executable script. The path is taken from the executable path obtained from sys.executable The script file is created with a execute privilage to user and group

uninstall()[source]

Removes the executable pipeline from the executable path.