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

Tweak cache pidlocking #50214

Merged
merged 2 commits into from
Jun 19, 2023

Conversation

IanButterworth
Copy link
Sponsor Member

@IanButterworth IanButterworth commented Jun 19, 2023

Fixes #50206

Moves the pidfile from the package source to the depot. The pidlock is now specific to the cachefile but ignoring any preferences (which would change the cachefile path) as the prefs hash can only be determined after precompilation.

@vchuravy

Fixes #50213

Stale pidfile rejection was unintentionally disabled, stale_age should have been set. I'm proposing 60 seconds. See comments for explanation.

@maleadt

base/loading.jl Outdated Show resolved Hide resolved
@vchuravy vchuravy added this to the 1.10 milestone Jun 19, 2023
@IanButterworth
Copy link
Sponsor Member Author

I'm going to merge this to get PkgEval working again. Further tweaks welcomed

@IanButterworth IanButterworth merged commit f555b4b into JuliaLang:master Jun 19, 2023
1 check passed
@IanButterworth IanButterworth deleted the ib/cache_pidfile_path branch June 19, 2023 16:03
@vtjnash
Copy link
Sponsor Member

vtjnash commented Jun 21, 2023

Thanks for fixing those. Sorry for the slow review!

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.

Check if pidlock process is still running Cache generation for stdlib on read-only FS fails
4 participants