Skip to content

Commit

Permalink
Update htcondor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
eacharles authored Sep 6, 2024
1 parent fcf1360 commit df2a916
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lsst/cmservice/common/htcondor.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,9 @@ async def check_htcondor_job(
Returns
-------
status: StatusEnum | None
HTCondor job status, None implies job not found in htcondor
status: StatusEnum
HTCondor job status
"""
if htcondor_id is None:
return None
with subprocess.Popen(
["condor_q", "-userlog", htcondor_id, "-af", "JobStatus", "ExitCode"],
stdout=subprocess.PIPE,
Expand Down

0 comments on commit df2a916

Please sign in to comment.