diff --git a/trains/backend_interface/task/task.py b/trains/backend_interface/task/task.py index d5f28a6c..b63e70e2 100644 --- a/trains/backend_interface/task/task.py +++ b/trains/backend_interface/task/task.py @@ -40,6 +40,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin): """ _anonymous_dataview_id = '__anonymous__' + _development_tag = 'development' class TaskTypes(Enum): def __str__(self): @@ -215,7 +216,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin): if project_name: project_id = get_or_create_project(self, project_name, created_msg) - tags = ['development'] if not running_remotely() else [] + tags = [self._development_tag] if not running_remotely() else [] req = tasks.CreateRequest( name=task_name or make_message('Anonymous task (%(user)s@%(host)s %(time)s)'), diff --git a/trains/task.py b/trains/task.py index 3a1b3fe7..d14726f5 100644 --- a/trains/task.py +++ b/trains/task.py @@ -360,7 +360,7 @@ class Task(_Task): # reset the task, so we can update it task.reset(set_started_on_success=False, force=False) # set development tags - task.set_tags(['development']) + task.set_tags([cls._development_tag]) # clear task parameters, they are not cleared by the Task reset task.set_parameters({}, __update=False) # clear the comment, it is not cleared on reset