fix(tradein): review minors — scheduler comment + save-error log label
All checks were successful
CI / changes (push) Successful in 7s
CI / backend-tests (push) Has been skipped
CI / frontend-tests (push) Has been skipped
CI / openapi-codegen-check (push) Has been skipped
CI / changes (pull_request) Successful in 6s
CI / backend-tests (pull_request) Has been skipped
CI / frontend-tests (pull_request) Has been skipped
CI / openapi-codegen-check (pull_request) Has been skipped

- scheduler.py: исправлен stale-комментарий yandex_detail_backfill
  (был: «YandexDetailScraper httpx, no proxy layer»;
   теперь: fetch via curl_cffi chrome120 + scraper_proxy_url,
           parse via YandexDetailScraper.parse)
- yandex_detail_backfill.py: outer except — сообщение лога изменено на
  «save/iteration error for listing_id=%d» чтобы отличать save-ошибку
  от fetch/parse-None путей (run_id убран — он менее важен в этом scope)
This commit is contained in:
bot-backend 2026-06-16 14:14:07 +03:00
parent e2e0291a0a
commit fd4a0d643d
2 changed files with 3 additions and 3 deletions

View file

@ -59,7 +59,8 @@ Sources:
- yandex_detail_backfill run_yandex_detail_backfill
(tasks/yandex_detail_backfill.py, #1553; nightly backfill of
yandex detail_enriched_at for ~3952 listings never enriched by
city_sweep; YandexDetailScraper httpx, no proxy layer;
city_sweep; fetch via curl_cffi chrome120 + scraper_proxy_url,
parse via YandexDetailScraper.parse;
window 12:00-15:00 UTC после avito_detail_backfill 09-12 UTC)
"""

View file

@ -263,8 +263,7 @@ async def run_yandex_detail_backfill(
except Exception as exc:
counters.failed += 1
logger.warning(
"yandex_detail_backfill: run_id=%d listing_id=%d failed: %s",
run_id,
"yandex_detail_backfill: save/iteration error for listing_id=%d: %s",
listing_id,
exc,
)