Keep only the input artifacts when cloning a task

This commit is contained in:
allegroai 2019-12-21 18:30:24 +02:00
parent 0be981fbc1
commit 4e0f711e39

View File

@ -862,7 +862,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
execution = ConfigTree.merge_configs(ConfigFactory.from_dict(execution),
ConfigFactory.from_dict(execution_overrides or {}))
# clear all artifacts
execution['artifacts'] = [e for e in execution['artifacts'] if e.get('mode') != 'output']
execution['artifacts'] = [e for e in execution['artifacts'] if e.get('mode') == 'input']
if not tags and task.tags:
tags = [t for t in task.tags if t != cls._development_tag]