mirror of
https://github.com/clearml/clearml
synced 2025-02-07 21:33:25 +00:00
Fix artifacts update in auxiliary task
This commit is contained in:
parent
67d9a9e5d4
commit
a992591f3c
@ -679,8 +679,10 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
|||||||
and all(isinstance(a, tasks.Artifact) for a in artifacts_list)):
|
and all(isinstance(a, tasks.Artifact) for a in artifacts_list)):
|
||||||
raise ValueError('Expected artifacts to [tasks.Artifacts]')
|
raise ValueError('Expected artifacts to [tasks.Artifacts]')
|
||||||
with self._edit_lock:
|
with self._edit_lock:
|
||||||
|
self.reload()
|
||||||
execution = self.data.execution
|
execution = self.data.execution
|
||||||
execution.artifacts = artifacts_list
|
keys = [a.key for a in artifacts_list]
|
||||||
|
execution.artifacts = [a for a in execution.artifacts or [] if a.key not in keys] + artifacts_list
|
||||||
self._edit(execution=execution)
|
self._edit(execution=execution)
|
||||||
|
|
||||||
def _set_model_design(self, design=None):
|
def _set_model_design(self, design=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user