Join Slack
Powered by
How can I prevent two instances of the same task t...
# community-support
z
Zak Taccardi
03/11/2024, 4:40 PM
How can I prevent two instances of the same task type from potentially running in parallel? It doesn’t matter if one runs before or after the other - just the two tasks cannot run simultaneously
e
Eric Haag
03/11/2024, 4:45 PM
Hi Zak. 👋 A shared build service is the answer.
https://docs.gradle.org/current/userguide/build_services.html#concurrent_access_to_the_service
☝️ 1
❤️ 1
z
Zak Taccardi
03/11/2024, 4:55 PM
I think this is the way to do it?
build.gradle.kts.kt
e
Eric Haag
03/11/2024, 5:04 PM
It looks right to me. 👍
2
Views
Open in Slack
Previous
Next