Skip to content

Commit

Permalink
output job log and id
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhall88 committed May 17, 2022
1 parent d5072cb commit 233e389
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion {{cookiecutter.profile_name}}/slurm-status.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ def get_status_sidecar(jobid):
return get_status_direct(jobid)


jobid = sys.argv[1]
# need to support quoted and unquoted jobid
# see https://github.com/Snakemake-Profiles/lsf/issues/45
split_args = shlex.split(" ".join(sys.argv[1:]))
jobid = split_args[0]
# outlog = split_args[1]

if SIDECAR_VARS:
logger.debug("slurm-status.py: querying sidecar")
Expand Down

0 comments on commit 233e389

Please sign in to comment.