feat(spiders): Add pause/resume system for crawls

This commit is contained in:
Karim shoair
2026-01-19 03:43:10 +02:00
parent acdb39988c
commit 1f0f86e3a2
6 changed files with 336 additions and 28 deletions
+6
View File
@@ -112,6 +112,12 @@ class CrawlResult:
stats: CrawlStats
items: ItemList
paused: bool = False
@property
def completed(self) -> bool:
"""True if the crawl completed normally (not paused)."""
return not self.paused
def __len__(self) -> int:
return len(self.items)