Skip to content

Make runBackground use process IDs #5115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

arturaz
Copy link
Contributor

@arturaz arturaz commented May 13, 2025

Currently the runBackground uses file locks and generated UUIDs for coordination.

This sometimes leads to the cases where a new background process is launched while the old one is still running because the JVM seems to release file locks before network sockets.

Because Mill now uses JDK 11, we can use it's APIs to transition to process id based watching, which should alleviate this problem.

0.12.x branch backport: #5120

arturaz added a commit to arturaz/mill that referenced this pull request May 13, 2025
@arturaz arturaz changed the title Make runBackground use process IDs. Make runBackground use process IDs May 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant