feat: overhaul UI styling, improve templates, enhance services and tests
This commit is contained in:
@@ -132,18 +132,26 @@ async def _daily_pipeline() -> None:
|
||||
# Step 1: 抓取
|
||||
logger.info("Scheduler pipeline: crawl %s", today)
|
||||
crawl_result = await crawl_daily(db, today)
|
||||
logger.info("Scheduler pipeline: crawl done, found=%d new=%d",
|
||||
crawl_result.get("found", 0), crawl_result.get("new", 0))
|
||||
logger.info(
|
||||
"Scheduler pipeline: crawl done, found=%d new=%d",
|
||||
crawl_result.get("found", 0),
|
||||
crawl_result.get("new", 0),
|
||||
)
|
||||
|
||||
# Step 2: 总结 pending 论文
|
||||
logger.info("Scheduler pipeline: summarize batch")
|
||||
summarize_result = await summarize_batch(db)
|
||||
logger.info("Scheduler pipeline: summarize done, result=%s", summarize_result)
|
||||
logger.info(
|
||||
"Scheduler pipeline: summarize done, result=%s", summarize_result
|
||||
)
|
||||
|
||||
# Step 3: 清理临时文件
|
||||
logger.info("Scheduler pipeline: cleanup tmp")
|
||||
cleanup_result = cleanup_tmp()
|
||||
logger.info("Scheduler pipeline: cleanup done, removed=%d", cleanup_result.get("removed", 0))
|
||||
logger.info(
|
||||
"Scheduler pipeline: cleanup done, removed=%d",
|
||||
cleanup_result.get("removed", 0),
|
||||
)
|
||||
|
||||
log_entry.status = "success"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user