相同hash 更新 source_url

This commit is contained in:
zk
2026-06-02 19:27:00 +08:00
parent 85278ea96a
commit 200e541c6e
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -98,8 +98,8 @@ async def _do_clean(data: dict) -> None:
if existing_id:
now = datetime.now()
await mysql.execute(
text("UPDATE bg_job SET status = 0, create_time = :now, update_time = :now WHERE id = :id"),
{"now": now, "id": existing_id},
text("UPDATE bg_job SET status = 0, source_url = :url, create_time = :now, update_time = :now WHERE id = :id"),
{"url": data.get("detail_url"), "now": now, "id": existing_id},
)
await mysql.commit()
await _update_pg_status(data_id, "cleaned")