summaryrefslogtreecommitdiff
path: root/frontends/Rexfile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-08-02 16:10:08 +0300
committerPaul Buetow <paul@buetow.org>2026-08-02 16:10:08 +0300
commitfa0703374e505f2f63010c5dd371a0b3863f4013 (patch)
tree2913cbb4c1a43e0ea48ffb84c4e4eeddb1f9bc69 /frontends/Rexfile
parentc945fce11d4f2964257c59099ecb40ab1d6ef2bd (diff)
shuriken: flock mutex so generation and sync never overlap
The generation and sync CronJobs are separate, so each one's concurrencyPolicy:Forbid only blocks itself, not the other. Add a shared flock on /data/shuriken.sh/.lock (the NFS volume, auto-released on pod death so a crash never leaves a stale lock): - generation: blocking-acquire the lock around the whole multi-site entrypoint run (waits for any in-progress sync, which is short). - sync: non-blocking acquire; skip the tick if generation holds it. flock is already in the image (util-linux), so no rebuild needed.
Diffstat (limited to 'frontends/Rexfile')
0 files changed, 0 insertions, 0 deletions