From 4e52015fd25ced5a0468a6ec1cd48a6889492d1e Mon Sep 17 00:00:00 2001 From: Paperclip Builder Date: Mon, 26 Oct 2026 22:28:57 +1100 Subject: [PATCH] ingestion: report per-platform added/updated correctly; qdrant compose subnet --- corpus/pipeline.py | 5 ++--- deploy/qdrant.yml | 11 +++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/corpus/pipeline.py b/corpus/pipeline.py index 46e959c..c063f35 100644 --- a/corpus/pipeline.py +++ b/corpus/pipeline.py @@ -216,9 +216,8 @@ def run(cfg, mode: str = "sync", log=None) -> RunStats: stats.chunks_written += len(rows) bucket = platform_changes.setdefault(doc.platform, {"documents": 0}) - bucket["added" if doc.path in manifest else "updated"] = ( - bucket.get("added" if doc.path in manifest else "updated", 0) + 1 - ) + key = "updated" if doc.path in manifest else "added" + bucket[key] = bucket.get(key, 0) + 1 if doc.path in manifest: stats.updated += 1 log(f"updated {doc.path} ({len(points)} chunk(s))") diff --git a/deploy/qdrant.yml b/deploy/qdrant.yml index dea7141..517b9ae 100644 --- a/deploy/qdrant.yml +++ b/deploy/qdrant.yml @@ -51,5 +51,16 @@ services: retries: 3 start_period: 10s +# The host's docker daemon has every default address pool allocated by other +# projects, so an implicit compose network cannot be created here. Pin a /28 of +# RFC1918 space that no other bridge uses; it is separate from the site's +# 10.89.0.0/28 so stopping one project cannot disturb the other. +networks: + default: + ipam: + config: + - subnet: 10.89.0.16/28 + gateway: 10.89.0.17 + volumes: qdrant_storage: