Skip to content

Commit

Permalink
fixed enqueue!
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Jan 3, 2023
1 parent 8f473e0 commit 1e4f3c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/runtime.jl
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ function handle_job_submission!(s::ServerData)
to_submit = s.queue.info.submit_queue
njobs = length(s.queue.info.current_queue)
while !isempty(s.submit_channel)
enqueue!(to_submit, take!(s.submit_channel))
jobdir,priority = take!(s.submit_channel)
to_submit[jobdir] = priority
end
n_submit = min(s.server.max_concurrent_jobs - njobs, length(to_submit))
submitted = 0
Expand All @@ -213,7 +214,7 @@ function handle_job_submission!(s::ServerData)
end
end
if curtries != -1
enqueue!(to_submit, job_dir => priority + 1)
to_submit[job_dir] = priority + 1
end
else
@warnv 2 "Submission job at dir: $job_dir is not a directory." logtype=RuntimeLog
Expand Down

2 comments on commit 1e4f3c5

@louisponet
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request updated: JuliaRegistries/General/74983

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.3.2 -m "<description of version>" 1e4f3c55e555c86b11df90ca183014424bdf98ff
git push origin v0.3.2

Please sign in to comment.