Re: [PATCH v2 0/6] maintenance: use packaged systemd units
- From
- Phillip Wood <phillip.wood123@gmail.com>
- Date
- Mar 25, 2024, 16:39 UTC
- Message-ID
- <398f3763-be1e-40f3-8b91-d0a62a530f64@gmail.com>
- In-Reply-To
- <ZgGAA7uwx3aqy0pH@framework>
On 25/03/2024 13:45, Max Gautier wrote:
Show 8 quoted lines
> On Mon, Mar 25, 2024 at 10:06:29AM +0000, phillip.wood123@gmail.com wrote: >> >> It is possible to wait on a lock file but I'd be worried about building up >> an endless queue of processes if the process holding the lock file crashed >> leaving it in place without anyway to automatically remove it. > > Side question: we can't use flock(2) in git, or lockf(3) ? The latter is > in POSIX.
We need something cross-platform, I don't think there is any appetite to move away from our current lock file implementation. We can think about how to handle concurrent maintenance jobs once these patches are merged.
Best Wishes
Phillip