mirror of
https://github.com/clearml/clearml
synced 2025-02-12 15:45:25 +00:00
Keep only the input artifacts when cloning a task
This commit is contained in:
parent
0be981fbc1
commit
4e0f711e39
@ -862,7 +862,7 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
|||||||
execution = ConfigTree.merge_configs(ConfigFactory.from_dict(execution),
|
execution = ConfigTree.merge_configs(ConfigFactory.from_dict(execution),
|
||||||
ConfigFactory.from_dict(execution_overrides or {}))
|
ConfigFactory.from_dict(execution_overrides or {}))
|
||||||
# clear all artifacts
|
# 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:
|
if not tags and task.tags:
|
||||||
tags = [t for t in task.tags if t != cls._development_tag]
|
tags = [t for t in task.tags if t != cls._development_tag]
|
||||||
|
Loading…
Reference in New Issue
Block a user