Skip to content

Make runBackground use process IDs (0.12.x branch) #5120

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

Merged

Conversation

arturaz
Copy link
Contributor

@arturaz arturaz commented May 13, 2025

Backport of #5115

lihaoyi pushed a commit that referenced this pull request May 19, 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

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
@lihaoyi lihaoyi merged commit 9ecfd0a into com-lihaoyi:0.12.x May 19, 2025
59 of 63 checks passed
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.

2 participants