From 3ba6b1f0bfb926847dcfac4aeae35dd0c135822e Mon Sep 17 00:00:00 2001 From: karajan1001 Date: Tue, 29 Nov 2022 10:41:29 +0800 Subject: [PATCH] Solve the unexpected error at the end of the queued tasks running fix: #8615 1. This is because, at the end of the tasks, the temp running directly will be deleted 1. Only fetch result during running (not during the result collection) 2. Bump into scmrepo 0.1.4 in which we wrapped `KeyError` into `SCMError`. --- dvc/repo/experiments/queue/utils.py | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dvc/repo/experiments/queue/utils.py b/dvc/repo/experiments/queue/utils.py index 3f09108e9..a2b2d2b6e 100644 --- a/dvc/repo/experiments/queue/utils.py +++ b/dvc/repo/experiments/queue/utils.py @@ -59,7 +59,7 @@ def fetch_running_exp_from_temp_dir( info = ExecutorInfo.from_dict(load_json(infofile)) except OSError: return result - if info.status < TaskStatus.FAILED: + if info.status <= TaskStatus.RUNNING: result[rev] = info.asdict() if info.git_url and fetch_refs and info.status > TaskStatus.PREPARING: diff --git a/pyproject.toml b/pyproject.toml index c6dfc3939..63bfb7c3a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ dependencies = [ "rich>=10.13.0", "pyparsing>=2.4.7", "typing-extensions>=3.7.4", - "scmrepo==0.1.3", + "scmrepo==0.1.4", "dvc-render==0.0.14", "dvc-task==0.1.6", "dvclive>=1.0",