Skip to content
Snippets Groups Projects
Commit 5976d391 authored by Georges Racinet's avatar Georges Racinet
Browse files

workdir: customized roster lock for breaking logic as in reservation.

Again, we don't want the application to be locked for the wrong reason,
e.g. lock held by a former process, but hostname has changed in the mean time.

We also take the opportunity to use shorter timeout and delay
betweeni locking attempts.

The customatbility of the breaking logic and of the timeouts could be submitted
UPSTREAM as options to Mercurial core, although it would be of limited interest to
Heptapod right now: we cannot readily apply the same logic to other Mercurial locks,
because HGitaly does not have exclusivity on them.
Querying the system service manager (systemd or runit) about the Heptapod services
would be a promising idea to do better, but we'd still have the issue that pushes
over SSH would create standalone processes.
parent fb44e1f5
No related branches found
No related tags found
2 merge requests!151heptapod#743: making 0.36 the new stable,!145Pool of repository working directories
Pipeline #66327 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment