gitdataai/libs/git/http
ZhenYi 8fb2436f22 feat(git): add Redis-backed hook worker with per-repo distributed locking
- pool/worker.rs: single-threaded consumer that BLMPOPs from Redis queues
  sequentially. K8s replicas provide HA — each pod runs one worker.
- pool/redis.rs: RedisConsumer with BLMOVE atomic dequeue, ACK/NAK, and
  retry-with-json support.
- pool/types.rs: HookTask, TaskType, PoolConfig (minimal — no pool metrics).
- sync/lock.rs: Redis SET NX EX per-repo lock to prevent concurrent workers
  from processing the same repo. Lock conflicts are handled by requeueing
  without incrementing retry count.
- hook/mod.rs: HookService.start_worker() spawns the background worker.
- ssh/mod.rs / http/mod.rs: ReceiveSyncService RPUSHes to Redis queue.
  Both run_http and run_ssh call start_worker() to launch the consumer.
- Lock conflicts (GitError::Locked) in the worker are requeued without
  incrementing retry_count so another worker can pick them up.
2026-04-17 12:33:58 +08:00
..
auth.rs feat(service): improve model sync and harden git HTTP/SSH stability 2026-04-17 00:13:40 +08:00
handler.rs fix(git): harden HTTP and SSH git transports for robustness 2026-04-16 20:11:18 +08:00
lfs_routes.rs init 2026-04-15 09:08:09 +08:00
lfs.rs fix(git): add LFS upload size limits and fix HTTP rate limiter read/write counter 2026-04-16 20:14:13 +08:00
mod.rs feat(git): add Redis-backed hook worker with per-repo distributed locking 2026-04-17 12:33:58 +08:00
rate_limit.rs fix(git): add LFS upload size limits and fix HTTP rate limiter read/write counter 2026-04-16 20:14:13 +08:00
routes.rs feat(service): improve model sync and harden git HTTP/SSH stability 2026-04-17 00:13:40 +08:00
utils.rs init 2026-04-15 09:08:09 +08:00