Unable to make progress running work

Hi,

I’m trying to add the pmd task to my build.

In CI where many tasks are executed (compileJava, checkstyle, pmd, test, jacocoTestReport, and others…), Gradle reports the following:

10:20:59  java.lang.IllegalStateException: Unable to make progress running work. There are items queued for execution but none of them can be started
10:20:59  	at org.gradle.execution.plan.DefaultPlanExecutor.assertHealthy(DefaultPlanExecutor.java:149)
10:20:59  	at org.gradle.composite.internal.DefaultBuildControllers.awaitCompletion(DefaultBuildControllers.java:123)
10:20:59  	at org.gradle.composite.internal.DefaultBuildControllers.execute(DefaultBuildControllers.java:96)
10:20:59  	at org.gradle.composite.internal.DefaultIncludedBuildTaskGraph$DefaultBuildTreeWorkGraph.runWork(DefaultIncludedBuildTaskGraph.java:2
...

As well as a lof of the following:

10:20:59  Unable to make progress running work. The following items are queued for execution but none of them can be started:
10:20:59    - Build ':':
10:20:59        - Waiting for nodes:
10:20:59            - :xxxxxx-yyy:xxxxxx-yyy-storage:assembleTestqqqqqLoadModules (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 9, dependencies=[destroyer locations for task group 8 (SHOULD_RUN), :xxxxxx-yyy:xxxxxx-yyy-storage:assembleTestqqqqqLoadModulesPrepare (SHOULD_RUN)], waiting-for=[:xxxxxx-yyy:xxxxxx-yyy-storage:assembleTestqqqqqLoadModulesPrepare (SHOULD_RUN), destroyer locations for task group 8 (SHOULD_RUN)], has-failed-dependency=false )
10:20:59            - :testutils:xxxxxx-testutils-tapes:pmd (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 6, dependencies=[:testutils:xxxxxx-testutils-tapes:pmdMain (SHOULD_RUN), :testutils:xxxxxx-testutils-tapes:pmdTest (SHOULD_RUN)], waiting-for=[:testutils:xxxxxx-testutils-tapes:pmdTest (SHOULD_RUN), :testutils:xxxxxx-testutils-tapes:pmdMain (SHOULD_RUN)], has-failed-dependency=false )
10:20:59            - :xxxxxx-www:xxxxxx-www-rest-api-utils:pmd (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 6, dependencies=[:xxxxxx-www:xxxxxx-www-rest-api-utils:pmdMain (SHOULD_RUN), :xxxxxx-www:xxxxxx-www-rest-api-utils:pmdTest (SHOULD_RUN)], waiting-for=[:xxxxxx-www:xxxxxx-www-rest-api-utils:pmdTest (SHOULD_RUN), :xxxxxx-www:xxxxxx-www-rest-api-utils:pmdMain (SHOULD_RUN)], has-failed-dependency=false )
10:20:59            - :xxxxxx-www:xxxxxx-www-constraints-jakarta:pmd (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 6, dependencies=[:xxxxxx-www:xxxxxx-www-constraints-jakarta:pmdMain (SHOULD_RUN), :xxxxxx-www:xxxxxx-www-constraints-jakarta:pmdTest (SHOULD_RUN)], waiting-for=[:xxxxxx-www:xxxxxx-www-constraints-jakarta:pmdTest (SHOULD_RUN), :xxxxxx-www:xxxxxx-www-constraints-jakarta:pmdMain (SHOULD_RUN)], has-failed-dependency=false )
10:20:59            - :xxxxxx-yyy-qqqqq:xxxxxx-yyy-qqqqq-shared:assembleqqqqqLoadModules (state=SHOULD_RUN, dependencies=NOT_COMPLETE, group=task group 8, dependencies=[destroyer locations for task group 7 (SHOULD_RUN), :xxxxxx-yyy-qqqqq:xxxxxx-yyy-qqqqq-shared:assembleqqqqqLoadModulesPrepare (SHOULD_RUN)], waiting-for=[:xxxxxx-yyy-qqqqq:xxxxxx-yyy-qqqqq-shared:assembleqqqqqLoadModulesPrepare (SHOULD_RUN), destroyer locations for task group 7 (SHOULD_RUN)], has-failed-dependency=false )
...

Using Gradle 8.14.4.

Has anyone encountered such an issue before?

I can provide a Gradle build scan privately if that can help figuring out what the issue is.

Thanks!

There are several open issues with that error message. I’d suggest you check whether one if those is your case and open a new one if not.

Yes, adding the clean task seems to resolve the issue.

Thank you.