Skip to content
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

Race conditions #1219

Closed
simonbyrne opened this issue Jun 5, 2019 · 3 comments
Closed

Race conditions #1219

simonbyrne opened this issue Jun 5, 2019 · 3 comments

Comments

@simonbyrne
Copy link
Contributor

The race conditions with precompile (JuliaLang/julia#17320) are a real pain when working with multiple processes. Other package operations (such as build) can also trigger race conditions, e.g. when working on a cluster with a shared file system.

Mutating global state is a difficult problem, so I'm not sure what the best solution is. One option is to do file locking at the depot level: this would require adding something like Pidfile.jl as a stdlib (JuliaLang/julia#7176).

@simonbyrne
Copy link
Contributor Author

Another related issue to precompilation is JuliaLang/julia#30174

@simonbyrne
Copy link
Contributor Author

Precompile was fixed by #36416. Pkg.build still has race conditions, but is less of an issue now that fewer packages make use of it.

@IanButterworth
Copy link
Sponsor Member

IanButterworth commented Jul 10, 2023

This is fixed for precompilation on master by #3519 and due to be in v1.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants