harden: cache PG/Redis singletons, safe orphan-lock cleanup, ScraperAbortedError on lock loss
This commit is contained in:
@@ -12,3 +12,7 @@ class SiteStructureChangedError(ScraperError):
|
||||
|
||||
class ListingResumeError(ScraperError):
|
||||
"""Вызывается, когда resume по checkpoint больше недостижим."""
|
||||
|
||||
|
||||
class ScraperAbortedError(ScraperError):
|
||||
"""Вызывается при внешнем прерывании (например, потеря Celery lock'а)."""
|
||||
|
||||
Reference in New Issue
Block a user