Skip to content

Commit 7739db9

Browse files
committed
feat: run backfill when arXiv has no new papers
When today's crawl yields nothing (weekends, holidays), run one chunk of historical backfill instead of doing nothing.
1 parent 60975b4 commit 7739db9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

automation/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ def run_daily() -> None:
130130
logger.info("After dedup: %d new papers to process", len(new_papers))
131131

132132
if not new_papers:
133-
logger.info("Nothing new to process today.")
133+
logger.info("Nothing new to process today — running historical backfill instead.")
134+
_run_incremental_backfill(cfg, state, owner, repo)
134135
return
135136

136137
# ── 4. Enrich ───────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)