mirror of
https://github.com/clearml/clearml
synced 2025-04-19 22:05:06 +00:00
Fix Dataset not setting system tag on existing data_processing Tasks
This commit is contained in:
parent
ac229f6b86
commit
c42e32e137
@ -69,8 +69,8 @@ class Dataset(object):
|
|||||||
self._task_pinger = None
|
self._task_pinger = None
|
||||||
self._created_task = False
|
self._created_task = False
|
||||||
# If we are reusing the main current Task, make sure we set its type to data_processing
|
# If we are reusing the main current Task, make sure we set its type to data_processing
|
||||||
if str(task.task_type) != str(Task.TaskTypes.data_processing) and \
|
if str(task.data.status) in ('created', 'in_progress'):
|
||||||
str(task.data.status) in ('created', 'in_progress'):
|
if str(task.task_type) != str(Task.TaskTypes.data_processing):
|
||||||
task.set_task_type(task_type=Task.TaskTypes.data_processing)
|
task.set_task_type(task_type=Task.TaskTypes.data_processing)
|
||||||
task.set_system_tags((task.get_system_tags() or []) + [self.__tag])
|
task.set_system_tags((task.get_system_tags() or []) + [self.__tag])
|
||||||
if dataset_tags:
|
if dataset_tags:
|
||||||
|
Loading…
Reference in New Issue
Block a user