Preserve DOJ transport with failed collection checkpoints
Development CI / check-and-build (push) Successful in 2m16s
GitHub Git mirror / mirror (push) Successful in 6s
Development CI / deploy-development (push) Successful in 2m31s

This commit is contained in:
eezd committed 2026-11-05 11:51:49 +08:00
1 parent 79a77738d5
commit f207f3f1be
2 files changed
+10 -3

No files matched your search

@@ -246,7 +246,7 @@ class NewsSpider(RedisSpider):
elif failed and run.official_cursor is not None and run.completed_documents_safe:
# Retain completed reads and explicit gaps, never failed lane positions.
cursor = dict(source.history_cursor or {})
for key in ('checked', 'document_retries', 'attachment_retries', 'bill_retries'):
for key in ('transport', 'checked', 'document_retries', 'attachment_retries', 'bill_retries'):
if key in run.official_cursor:
cursor[key] = run.official_cursor[key]
source.history_cursor = cursor