File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2968,11 +2968,13 @@ global parse_pidfile_hook
2968
2968
compilecache_pidfile_path (pkg:: PkgId ) = compilecache_path (pkg, UInt64 (0 ); project= " " ) * " .pidfile"
2969
2969
2970
2970
# Allows processes to wait if another process is precompiling a given source already.
2971
- # The lock file is deleted and precompilation will proceed after `stale_age` seconds if
2971
+ # The lock file mtime will be updated when held every `stale_age/2` seconds.
2972
+ # After `stale_age` seconds beyond the mtime of the lock file, the lock file is deleted and
2973
+ # precompilation will proceed if
2972
2974
# - the locking process no longer exists
2973
2975
# - the lock is held by another host, since processes cannot be checked remotely
2974
2976
# or after `stale_age * 25` seconds if the process does still exist.
2975
- function maybe_cachefile_lock (f, pkg:: PkgId , srcpath:: String ; stale_age= 300 )
2977
+ function maybe_cachefile_lock (f, pkg:: PkgId , srcpath:: String ; stale_age= 5 )
2976
2978
if @isdefined (mkpidlock_hook) && @isdefined (trymkpidlock_hook) && @isdefined (parse_pidfile_hook)
2977
2979
pidfile = compilecache_pidfile_path (pkg)
2978
2980
cachefile = invokelatest (trymkpidlock_hook, f, pidfile; stale_age)
You can’t perform that action at this time.
0 commit comments