Skip to content

Commit 1a89f6a

Browse files
authored
Update condor.jl
1 parent a21d4f8 commit 1a89f6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/condor.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ function launch(manager::HTCManager, params::Dict, instances_arr::Array, c::Cond
6868

6969
script = condor_script(portnum, np, params)
7070
cmd = `condor_submit $script`
71-
proc = run(ignorestatus(cmd)) # run and wait (blocks)
71+
proc = run(ignorestatus(cmd); wait=false) # run and wait (blocks)
72+
while !Base.process_exited(proc)
73+
run(`condor_q`)
74+
end
7275
if !success(proc)
7376
println("batch queue not available (could not run condor_submit)")
7477
return

0 commit comments

Comments
 (0)