Skip to content

Max parallel has undesirable blocking behavior #26042

Answered by BrightRan
chingc asked this question in Actions
Discussion options

You must be logged in to vote

@chingc,

For example, if I have 20 total jobs and max-parallel is 5, GitHub Actions will start 5 jobs but will not start more until all 5 are complete.

I also tested this with GitHub-hosted runners and self-hosted runners, however I did not reproduce the issue likes as you mentioned.
In my test, after one job in a batch was completed, a queued job would start, it did not wait other jobs in that batch to be completed, although there may be some delay to start the queued job after the previous job completed.

I noticed this description in the docs:

By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.

Whe…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants