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

Lower Pidfile stale_age multiplier. Add pidfile to cache log message. #51714

Merged
merged 7 commits into from
Oct 16, 2023

Conversation

IanButterworth
Copy link
Sponsor Member

@IanButterworth IanButterworth commented Oct 15, 2023

This x25 pre-dated the current setup where the mtime of the lock file is refreshed every stale_age/2 seconds, so can be reduced.

Regarding the cache pidlock, this means that different machines sharing a depot will now wait for 50 seconds rather than 4 minutes, given that they cannot do the faster 10 seconds stale assessment because they cannot check whether the process still exists.

Also include the pidfile path in the log message, so if the user wants to, they can rm the file and override the lock.

Pkg counterpart JuliaLang/Pkg.jl#3654

base/loading.jl Outdated Show resolved Hide resolved
stdlib/FileWatching/src/pidfile.jl Show resolved Hide resolved
@IanButterworth IanButterworth added the status:merge me PR is reviewed. Merge when all tests are passing label Oct 16, 2023
@IanButterworth IanButterworth merged commit 6ec149f into JuliaLang:master Oct 16, 2023
6 of 7 checks passed
@IanButterworth IanButterworth deleted the ib/pidlock_tweaks branch October 16, 2023 16:53
@IanButterworth IanButterworth removed the status:merge me PR is reviewed. Merge when all tests are passing label Oct 16, 2023
KristofferC pushed a commit that referenced this pull request Oct 23, 2023
@KristofferC KristofferC removed the backport 1.10 Change should be backported to the 1.10 release label Nov 6, 2023
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.

None yet

4 participants