feat: add historical news AI backfill and visible task queue
Development CI / check-and-build (push) Successful in 2m44s
GitHub Git mirror / mirror (push) Successful in 6s
Development CI / deploy-development (push) Failing after 7s

Freeze date-range previews and model settings, track per-news progress and downstream targets, and share completion-driven scheduling with realtime analysis.

Prevent overlapping retries for the same news, retain batch queue associations, and refresh selected details with session-safe pagination.
This commit is contained in:
eezd committed 2026-11-01 14:47:54 +08:00
1 parent cbd2618a20
commit b45981ec30
25 files changed
+1339 -39

No files matched your search

+2 -1
View File
@@ -12,6 +12,7 @@ def fake_session(settings):
session.get = AsyncMock(return_value=settings)
session.scalars = AsyncMock(return_value=N(all=lambda: []))
session.commit = AsyncMock()
session.execute = AsyncMock()
return session
@@ -117,7 +118,7 @@ def test_history_completion_is_counted_independently_of_item_order(trading, monk
items=[{'id':i,'hash':'current','state':'pending'} for i in (1,2,3)])
article = N(id=30, state='done', error=None)
session = fake_session(None)
session.scalar = AsyncMock(side_effect=[job, article])
session.scalar = AsyncMock(side_effect=[job, None, article])
session.get = AsyncMock(side_effect=lambda model,*a,**kw: {
RiskSettings:N(enabled=True), ReprocessJob:job,
ArticleAnalysis:article, NewsItem:N(id=3, content_hash='current')}[model])