Interrupt dispatch thread in WorkerAction.stop() to unblock blocking work actions When WorkerAction.stop() is called (e.g. due to task timeout), it signalled the main execute thread via completed.countDown() but never interrupted the dispatch thread that is actually running the work action. With process isolation, the worker JVM cannot exit while that non-daemon dispatch thread is alive, so DefaultWorkerProcess.waitForStop() blocks for the full duration of any blocking call inside the work action (e.g. CountDownLatch.await(90s)), causing TaskTimeoutIntegrationTest to exceed its 60s @IntegrationTestTimeout. Fix: track the dispatch thread in runningThread (guarded by runningThreadLock). stop() now sets stopped=true and interrupts runningThread if it is set, causing any interruptible blocking call in the work action to throw InterruptedException. run() sets runningThread before executing the action and clears it in a finally block. It also checks stopped after setting runningThread to handle the race where stop() ran before run() had a chance to set the field. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Gradle is a highly scalable build automation tool designed to handle everything from large, multi-project enterprise builds to quick development tasks across various languages. Gradleβs modular, performance-oriented architecture seamlessly integrates with development environments, making it a go-to solution for building, testing, and deploying applications on Java, Kotlin, Scala, Android, Groovy, C++, and Swift.
For a comprehensive overview, please visit the official Gradle project homepage.
Starting with Gradle is easy with these essential resources. Follow these to install Gradle, set up initial projects, and explore supported platforms:
π Explore Gradleβs full array of resources through the Gradle Documentation.
Gradle is built to work smoothly with a variety of Integrated Development Environments (IDEs) and Continuous Integration (CI) systems, providing extensive support for a streamlined workflow:
Kickstart your Gradle knowledge with courses, guides, and community support tailored to various experience levels:
The Gradle community offers a range of forums, documentation, and direct help to guide you through every step of your Gradle journey:
#github-integrations for integration topics.Quick Tip: New contributors to Gradle projects are encouraged to ask questions in the Slack
#community-supportchannel.
To make the most out of Gradle, take advantage of these additional resources:
π Stay connected with the Gradle Community and access the latest news, training, and updates via Slack, Forum, and our Newsletter.