Robert Elliot
10/16/2025, 2:18 PM~/.gradle/caches/build-cache-1 between runs.
Unfortunately this means periodically when two builds run concurrently one fails as so:
> Failed to load cache entry 0801251eccdf893889c1065191e1327d for task ':admin-api:findDeclaredProcsMain': Could not load from local cache: Timeout waiting to lock Build cache (/home/worker/.gradle/caches/build-cache-1). It is currently in use by another process.
Owner PID: 52
Our PID: 53
Owner Operation:
Our operation:
Lock file: /home/worker/.gradle/caches/build-cache-1/build-cache-1.lock
Looks like it's a 30 second timeout.
Is this a sign that sharing that directory is a bad idea? Or that Gradle is being too aggressive with the lock (could it take and release it much more frequently during concurrent builds, I wonder)?Vampire
10/16/2025, 4:24 PMGRADLE_USER_HOME you should not share this to multiple build agents. If you want to leverage a common build cache, you should use a remote build cache.