mirror of
https://github.com/clearml/clearml
synced 2025-03-03 10:42:00 +00:00
Fix set tags on completed / published tasks
This commit is contained in:
parent
22104bed37
commit
c3fd3ed7c6
@ -1568,7 +1568,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
||||
status = self._data.status if self._data and self._reload_skip_flag else self.data.status
|
||||
if status not in (tasks.TaskStatusEnum.created, tasks.TaskStatusEnum.in_progress):
|
||||
# the exception being name/comment that we can always change.
|
||||
if kwargs and all(k in ('name', 'comment') for k in kwargs.keys()):
|
||||
if kwargs and all(k in ('name', 'comment', 'tags') for k in kwargs.keys()):
|
||||
pass
|
||||
else:
|
||||
raise ValueError('Task object can only be updated if created or in_progress')
|
||||
|
Loading…
Reference in New Issue
Block a user