Skip to content

Commit

Permalink
Fix job sort order.
Browse files Browse the repository at this point in the history
  • Loading branch information
maleadt committed Jan 10, 2024
1 parent 25f196f commit 9124758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/evaluate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ function evaluate(configs::Vector{Configuration}, packages::Vector{Package}=Pack
# ... by number of dependencies, hopefully increasing cache reuse
deps = package_dependencies(first(values(configs)))
ndeps(pkg) = haskey(deps, pkg.name) ? length(deps[pkg.name]) : typemax(Int)
sort!(jobs, by=job->ndeps(job.package))
sort!(jobs, by=job->ndeps(job.package), rev=true)
catch err
@error "Could not sort jobs" exception=(err, catch_backtrace())
shuffle!(jobs)
Expand Down

0 comments on commit 9124758

Please sign in to comment.