You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 21, 2025. It is now read-only.
bigdaz
changed the title
Stoping gradle deamons on non-ephemeral runners
Avoid stopping gradle deamons started by other runners on a shared host
Jun 22, 2022
bigdaz
changed the title
Avoid stopping gradle deamons started by other runners on a shared host
Action should not stop gradle deamons started by other runners on a shared host
Jun 22, 2022
At the moment, we run gradle --stop for all Gradle versions run during the build. If multiple runners on a host share the same Gradle User Home, then this will result in stopping Gradle steps running concurrently.
While it may be considered back practise to share Gradle User Home between different runners on a host, we should avoid stopping the Gradle Daemon when the Gradle User Home directory already exists at the start of the job (in which case we don't attempt to save/restore the Gradle User Home).
@i-walker That appears to be an unrelated failure. This issue is about the daemon being stopped after the build completes, whereas your issue is that the daemon is stopping/crashing during the build.
Stoping Gradle daemons on self-hosted non-ephermal runner is currently canceling Gradle tasks that run in other jobs or workflows even.
This is caused by the post-action step that's stoping all running daemons.
gradle-build-action/src/setup-gradle.ts
Line 103 in 7f46dbd
The text was updated successfully, but these errors were encountered: