Skip to content

Commit c9ab3d9

Browse files
committed
Move clean-db with other mlflow extensions.
1 parent 8f61fd5 commit c9ab3d9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

dataikuapi/dss/mlflow.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,12 @@ def garbage_collect(self):
9292
"GET", "/api/2.0/mlflow/extension/garbage-collect",
9393
headers={"x-dku-mlflow-project-key": self.project_key}
9494
)
95+
96+
def clean_experiment_tracking_db(self):
97+
"""
98+
Cleans the experiments, runs, params, metrics, tags, etc. for this project
99+
100+
This call requires an API key with admin rights
101+
"""
102+
self.client._perform_raw("DELETE", "/api/2.0/mlflow/extension/clean-db/%s" % self.project_key)
103+

dataikuapi/dss/project.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,15 +1626,6 @@ def get_mlflow_extension(self):
16261626
"""
16271627
return DSSMLflowExtension(client=self.client, project_key=self.project_key)
16281628

1629-
def clean_experiment_tracking_db(self):
1630-
"""
1631-
Cleans the experiments, runs, params, metrics, tags, etc. for this project
1632-
1633-
This call requires an API key with admin rights
1634-
"""
1635-
self.client._perform_raw("DELETE", "/api/2.0/mlflow/clean-db/%s" % self.project_key)
1636-
1637-
16381629
class TablesImportDefinition(object):
16391630
"""
16401631
Temporary structure holding the list of tables to import

0 commit comments

Comments
 (0)