Skip to content

Commit

Permalink
[Slurm] Add sleep while waiting for job to start (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
David96 authored Sep 15, 2021
1 parent 861b301 commit ed7ee82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/slurm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ function launch(manager::SlurmManager, params::Dict, instances_arr::Array,
break # break if specification found
end
end
# Sleep for some time to limit ressource usage while waiting for the job to start
sleep(0.1)
end
config = WorkerConfig()
config.port = parse(Int, slurm_spec_match[2])
Expand Down

0 comments on commit ed7ee82

Please sign in to comment.