From 88259094acc7c0d6e9a0dbddec7aaab2a00609b0 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Thu, 19 Jan 2023 11:19:02 +0200 Subject: [PATCH] Add client version to runtime properties --- clearml/task.py | 9 ++++++++- docs/clearml.conf | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/clearml/task.py b/clearml/task.py index fe5f0998..5d4cfe68 100644 --- a/clearml/task.py +++ b/clearml/task.py @@ -791,7 +791,8 @@ class Task(_Task): # monitoring are: Resource monitoring and Dev Worker monitoring classes BackgroundMonitor.start_all(task=task) - task.set_progress(0) + # noinspection PyProtectedMember + task._set_startup_info() return task @classmethod @@ -3076,6 +3077,12 @@ class Task(_Task): # noinspection PyProtectedMember return OutputModel._text_to_config_dict(config_text) + def _set_startup_info(self): + # type: () -> () + self._set_runtime_properties( + runtime_properties={"CLEARML VERSION": self.session.client, "CLI": sys.argv[0], "progress": "0"} + ) + @classmethod def _reset_current_task_obj(cls): if not cls.__main_task: diff --git a/docs/clearml.conf b/docs/clearml.conf index 05ad2a43..6cc5bbcd 100644 --- a/docs/clearml.conf +++ b/docs/clearml.conf @@ -25,7 +25,7 @@ sdk { # { # registered_prefix = "s3://bucket/research" - # local_prefix = "file:///mnt/shared/bucket/research + # local_prefix = "file:///mnt/shared/bucket/research" # }, # { # registered_prefix = "file:///mnt/shared/folder/"