Skip to content

Commit 64649c0

Browse files
committed
Support specifying both path and Batch UID instead of only Batch UID when resuming.
1 parent 2a4f2cb commit 64649c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/smart_dispatch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ def _gen_job_paths(jobname):
175175

176176

177177
def get_job_folders(jobname):
178+
if os.path.isdir(jobname):
179+
# We assume `jobname` is `path_job` repo, we extract the real `jobname`.
180+
jobname = os.path.basename(os.path.abspath(jobname))
181+
178182
path_job, path_job_logs, path_job_commands = _gen_job_paths(jobname)
179183

180184
if not os.path.exists(path_job_commands):

0 commit comments

Comments
 (0)