exp: drop deprecated get_running_exps()

- replaced with queue.collect_active()
This commit is contained in:
Peter Rowlands
2023-05-23 15:43:50 +09:00
committed by Peter Rowlands (변기호)
parent 96449f157c
commit 629223cbc2
4 changed files with 0 additions and 40 deletions
-11
View File
@@ -353,17 +353,6 @@ class Experiments:
result[rev] = name
return result
def get_running_exps(self, fetch_refs: bool = True) -> Dict[str, Dict]:
"""Return info for running experiments."""
result = {}
for queue in (
self.workspace_queue,
self.tempdir_queue,
self.celery_queue,
):
result.update(queue.get_running_exps(fetch_refs))
return result
def apply(self, *args, **kwargs):
from dvc.repo.experiments.apply import apply
-8
View File
@@ -649,14 +649,6 @@ class BaseStashQueue(ABC):
message=f"commit: {msg}",
)
@abstractmethod
def get_running_exps(self, fetch_refs: bool = True) -> Dict[str, Dict]:
"""Get the execution info of the currently running experiments
Args:
fetch_ref (bool): fetch completed checkpoints or not.
"""
@abstractmethod
def collect_active_data(
self,
-13
View File
@@ -489,19 +489,6 @@ class LocalCeleryQueue(BaseStashQueue):
return celery_remove(self, *args, **kwargs)
def get_running_exps(self, fetch_refs: bool = True) -> Dict[str, Dict]:
"""Get the execution info of the currently running experiments
Args:
fetch_ref (bool): fetch completed checkpoints or not.
"""
result: Dict[str, Dict] = {}
for entry in self.iter_active():
result.update(
fetch_running_exp_from_temp_dir(self, entry.stash_rev, fetch_refs)
)
return result
def get_ref_and_entry_by_names(
self,
exp_names: Union[str, List[str]],
-8
View File
@@ -136,14 +136,6 @@ class TempDirQueue(WorkspaceQueue):
) -> Dict[str, str]:
return BaseStashQueue.collect_executor(exp, executor, exec_result)
def get_running_exps(self, fetch_refs: bool = True) -> Dict[str, Dict]:
result: Dict[str, Dict] = {}
for entry in self.iter_active():
result.update(
fetch_running_exp_from_temp_dir(self, entry.stash_rev, fetch_refs)
)
return result
def collect_active_data(
self,
baseline_revs: Optional[Collection[str]],