Files
blog/content/posts/commits/2026-06-19-commit-53255d0.md
Betty fe64836e24
Some checks failed
Hugo Build & Deploy / build-deploy (push) Failing after 7s
post: commit 53255d0 in bojemoi
2026-06-19 10:03:59 +02:00

1.1 KiB

title, date, draft, tags, categories, summary, author
title date draft tags categories summary author
[bojemoi] feat(uzi): add distributed lock for multi-worker support 2026-06-19T10:03:58+02:00 false
commit
bojemoi
main
Git Activity
Commit 53255d0 par Betty dans bojemoi Betty

Commit 53255d0

Repository bojemoi
Branch main
Author Betty
Hash 53255d088b3d34f961f67f07fdb4c43ffbd752f5

Description

  • uzi_scan_log: add locked_at column, status='running' for in-progress scans
  • pick_next_host(): exclude 'running' hosts + atomic INSERT lock (ON CONFLICT DO NOTHING)
  • ensure_uzi_scan_log(): migrate locked_at column, clean stale locks >2h
  • Stack: scale uzi-service to 3 replicas

Multiple UZI workers can now run concurrently without scanning the same target.

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

Files Changed

M	borodino/thearm_uzi
M	stack/40-service-borodino.yml

Diff Summary

 borodino/thearm_uzi           | 30 +++++++++++++++++++++++++++---
 stack/40-service-borodino.yml |  2 +-
 2 files changed, 28 insertions(+), 4 deletions(-)