From ccf716119c80c1c04b8a71224d2adbb4499ec298 Mon Sep 17 00:00:00 2001 From: bot-backend Date: Sat, 4 Jul 2026 03:11:58 +0300 Subject: [PATCH] =?UTF-8?q?fix(tradein/scraper-kit):=20=D0=BF=D1=80=D0=BE?= =?UTF-8?q?=D0=B1=D1=80=D0=BE=D1=81=20config=3D=20=D0=B2=20pipeline.py::fe?= =?UTF-8?q?tch=5Fnewbuilding=20call?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Найдено при code-review этого же PR (F1, #2349) и независимо подтверждено F3-аудитом (#2351): run_cian_city_sweep's houses-фаза звала fetch_newbuilding(zhk_url) без config=, хотя config — mandatory параметр enclosing-функции, тривиально в scope. Сейчас dormant (USE_KIT_SCHEDULER=False + cian_city_sweep.enabled=false в SQL seed), но при включении флага/расписания каждый house молча падал бы AssertionError (перехватывается except → houses_failed, sweep не крашится целиком, но newbuilding-enrichment был бы 100% failing silently). --- .../scraper-kit/src/scraper_kit/orchestration/pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tradein-mvp/packages/scraper-kit/src/scraper_kit/orchestration/pipeline.py b/tradein-mvp/packages/scraper-kit/src/scraper_kit/orchestration/pipeline.py index e766c5aa..cdc90b28 100644 --- a/tradein-mvp/packages/scraper-kit/src/scraper_kit/orchestration/pipeline.py +++ b/tradein-mvp/packages/scraper-kit/src/scraper_kit/orchestration/pipeline.py @@ -2456,7 +2456,7 @@ async def run_cian_city_sweep( zhk_url: str = hrow["cian_zhk_url"] counters.houses_attempted += 1 try: - nb_enrichment = await fetch_newbuilding(zhk_url) + nb_enrichment = await fetch_newbuilding(zhk_url, config=config) if nb_enrichment is not None: save_newbuilding_enrichment(db, house_id_val, nb_enrichment) counters.houses_enriched += 1