exp show: don't acquire repo lock

This commit is contained in:
Peter Rowlands
2022-04-21 15:45:59 +09:00
committed by Peter Rowlands (변기호)
parent 72d57f13bc
commit ba82faee53
+4 -3
View File
@@ -1,15 +1,17 @@
import logging
from collections import OrderedDict, defaultdict
from datetime import datetime
from typing import Any, Callable, Dict, List, Optional, Union
from typing import TYPE_CHECKING, Any, Callable, Dict, List, Optional, Union
from dvc.repo import Repo, locked # pylint: disable=unused-import
from dvc.repo.experiments.base import ExpRefInfo
from dvc.repo.metrics.show import _gather_metrics
from dvc.repo.params.show import _gather_params
from dvc.scm import iter_revs
from dvc.utils import error_handler, onerror_collect
if TYPE_CHECKING:
from dvc.repo import Repo
logger = logging.getLogger(__name__)
@@ -124,7 +126,6 @@ def _collect_experiment_branch(
return res
@locked
def show(
repo: "Repo",
all_branches=False,