v1.0.9: 爬取记录入库MySQL(crawler库: 任务/运行/结果三表, 内容不入库只存元数据, OK/FAIL状态标记)

This commit is contained in:
2026-08-11 19:23:35 +08:00
parent 5a137514e8
commit 9cd5b29644
5 changed files with 293 additions and 0 deletions
+5
View File
@@ -116,5 +116,10 @@ class Scheduler(threading.Thread):
sch["last_run"] = now.strftime("%Y-%m-%d %H:%M:%S")
sch["runs_count"] = sch.get("runs_count", 0) + 1
store.upsert_task(task)
try:
import db
db.upsert_task(task)
except Exception:
pass
except Exception:
pass