Make PipelineController.version attribute publicly accessible

This commit is contained in:
allegroai 2024-02-04 19:29:38 +02:00
parent 56ba25f554
commit 122b308646

View File

@ -1469,6 +1469,7 @@ class PipelineController(object):
pipeline_object._task = pipeline_task pipeline_object._task = pipeline_task
pipeline_object._nodes = {} pipeline_object._nodes = {}
pipeline_object._running_nodes = [] pipeline_object._running_nodes = []
pipeline_object._version = pipeline_task._get_runtime_properties().get("version")
try: try:
pipeline_object._deserialize(pipeline_task._get_configuration_dict(cls._config_section), force=True) pipeline_object._deserialize(pipeline_task._get_configuration_dict(cls._config_section), force=True)
except Exception: except Exception:
@ -1485,6 +1486,11 @@ class PipelineController(object):
# type: () -> List[str] # type: () -> List[str]
return self._task.get_tags() or [] return self._task.get_tags() or []
@property
def version(self):
# type: () -> str
return self._version
def add_tags(self, tags): def add_tags(self, tags):
# type: (Union[Sequence[str], str]) -> None # type: (Union[Sequence[str], str]) -> None
""" """