Clone
Bo Zhang <bo@gradle.com>
committed
on 25 Oct 17
Minus 1 when submit `max-workers` to thread pool (#3281)
Fix https://github.com/gradle/gradle/issues/3273

Currently, we allow main thread (… Show more
Minus 1 when submit `max-workers` to thread pool (#3281)

Fix https://github.com/gradle/gradle/issues/3273

Currently, we allow main thread (i.e. the thread which is waiting for build operation queue's completion)

to execute some work. The consequence is, the actual worker number is max-workers number +1. Since we

can't set --max-workers=0 via command line, that means the work would always be executed parallelly.

This commit only submit `max-workers`-1 threads to thread pool to avoid this issue.

* Remove @Ignore of DependencyUnresolvedModuleIntegrationTest

We fixed the possible issue with `max-workers` (see #3273),

this commit removes @Ignore in DependencyUnresolvedModuleIntegrationTest Show less

green-master + 453 more