Skip to content

Commit

Permalink
bug fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin authored Nov 6, 2023
1 parent 6b32904 commit a012160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xfaster/gcorr_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def wait_for_jobs(jobs):
while jobs:
print("Waiting for {} jobs: {}".format(len(jobs), jobs))
time.sleep(10)
out = sp.check_output("squeue -u $USER", shell=True).decode()
out = sp.check_output("squeue -u $USER", shell=True).decode().strip()
running = set([job.split()[0] for job in out.split("\n")[1:]]) & jobs
print("Found {} running jobs: {}".format(len(running), running))
jobs -= running
Expand Down

0 comments on commit a012160

Please sign in to comment.