mirror of
https://github.com/clearml/clearml
synced 2025-02-07 21:33: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),
|
||||
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]
|
||||
|
Loading…
Reference in New Issue
Block a user