Skip to content

Commit

Permalink
job_queue: update allowed long build count
Browse files Browse the repository at this point in the history
See discussion at #13.
  • Loading branch information
carlocab committed May 10, 2024
1 parent 8b19a5f commit fd4f059
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/job_queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def pop
loop do
running_long_build_count = SharedState.instance.running_jobs(@queue_type).count(&:long_build?)

if running_long_build_count < 2 && !@queue[:long].empty?
if running_long_build_count < 6 && !@queue[:long].empty?
break @queue[:long].shift
elsif !@queue[:default].empty?
break @queue[:default].shift
Expand Down

0 comments on commit fd4f059

Please sign in to comment.