harden: cache PG/Redis singletons, safe orphan-lock cleanup, ScraperAbortedError on lock loss

This commit is contained in:
qananasikq
2026-04-18 00:33:10 +03:00
parent a8c5f8aa41
commit 7b7efbf525
9 changed files with 245 additions and 53 deletions

View File

@@ -12,3 +12,7 @@ class SiteStructureChangedError(ScraperError):
class ListingResumeError(ScraperError):
"""Вызывается, когда resume по checkpoint больше недостижим."""
class ScraperAbortedError(ScraperError):
"""Вызывается при внешнем прерывании (например, потеря Celery lock'а)."""