Add client version to runtime properties

This commit is contained in:
allegroai 2023-01-19 11:19:02 +02:00
parent 1953fcc519
commit 88259094ac
2 changed files with 9 additions and 2 deletions

View File

@ -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:

View File

@ -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/"