mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +00:00
Restrict Dataset creation for old API versions
This commit is contained in:
parent
f9b370b947
commit
03fdf0807f
@ -1194,6 +1194,9 @@ class Dataset(object):
|
||||
|
||||
:return: Newly created Dataset object
|
||||
"""
|
||||
if not Session.check_min_api_server_version("2.13"):
|
||||
raise NotImplementedError("Datasets are not supported with your current ClearML server version. Please update your server.")
|
||||
|
||||
parent_datasets = [cls.get(dataset_id=p) if not isinstance(p, Dataset) else p for p in (parent_datasets or [])]
|
||||
if any(not p.is_final() for p in parent_datasets):
|
||||
raise ValueError("Cannot inherit from a parent that was not finalized/closed")
|
||||
|
Loading…
Reference in New Issue
Block a user