Skip to content
Snippets Groups Projects
Commit 8f16a8fc authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Don't call sacct in finalize if there are no Slurm jobs involved

parent 373cd929
No related branches found
No related tags found
1 merge request!571Fix launching work directly (not via Slurm)
...@@ -141,6 +141,8 @@ def get_job_info(jobs: List[str], fmt: List[str]) -> List[List[str]]: ...@@ -141,6 +141,8 @@ def get_job_info(jobs: List[str], fmt: List[str]) -> List[List[str]]:
Result ordered according to order of jobs given Result ordered according to order of jobs given
Order of fields in inner lists follows fmt Order of fields in inner lists follows fmt
""" """
if not jobs:
return [] # Skip calling sacct if not using Slurm
# will use JobID to match results to jobs (duplicate field in fmt is OK) # will use JobID to match results to jobs (duplicate field in fmt is OK)
fmt_query = ",".join(["JobID"] + fmt) fmt_query = ",".join(["JobID"] + fmt)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment