mirror of
https://github.com/clearml/clearml
synced 2025-02-12 07:35:08 +00:00
Fix clearml-data CLI tool will move non-dataset tasks to a .dataset project if the respective task is not a dataset
This commit is contained in:
parent
ebcda80af5
commit
aea7e3ec6d
@ -1676,6 +1676,10 @@ class Dataset(object):
|
|||||||
|
|
||||||
def get_instance(dataset_id_):
|
def get_instance(dataset_id_):
|
||||||
task = Task.get_task(task_id=dataset_id_)
|
task = Task.get_task(task_id=dataset_id_)
|
||||||
|
|
||||||
|
if cls.__tag not in task.get_system_tags():
|
||||||
|
raise ValueError("Provided id={} is not a Dataset ID".format(task.id))
|
||||||
|
|
||||||
if task.status == "created":
|
if task.status == "created":
|
||||||
raise ValueError("Dataset id={} is in draft mode, delete and recreate it".format(task.id))
|
raise ValueError("Dataset id={} is in draft mode, delete and recreate it".format(task.id))
|
||||||
force_download = False if task.status in ("stopped", "published", "closed", "completed") else True
|
force_download = False if task.status in ("stopped", "published", "closed", "completed") else True
|
||||||
|
Loading…
Reference in New Issue
Block a user