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
Loading
Please register or sign in to comment