From e60f2ff14b2da35c302aeb7d295d3ca1631bcd34 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Mon, 6 Jun 2022 14:08:39 +0300 Subject: [PATCH] Modify pipeline progress calculation --- clearml/task.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/clearml/task.py b/clearml/task.py index 5fac2a33..b8f3c4d3 100644 --- a/clearml/task.py +++ b/clearml/task.py @@ -1318,7 +1318,10 @@ class Task(_Task): :return: Task's progress as an int. In case the progress doesn't exist, None will be returned """ - return self._get_runtime_properties().get("progress") + progress = self._get_runtime_properties().get("progress") + if progress is None or not progress.isnumeric(): + return None + return int(progress) def add_tags(self, tags): # type: (Union[Sequence[str], str]) -> None @@ -1843,7 +1846,7 @@ class Task(_Task): :param Any preview: The artifact preview - :param bool wait_on_upload: Whether or not the upload should be synchronous, forcing the upload to complete + :param bool wait_on_upload: Whether the upload should be synchronous, forcing the upload to complete before continuing. :param str extension_name: File extension which indicates the format the artifact should be stored as.