From 6854c7972e411676c012b32b4fb2fb7192dc7f96 Mon Sep 17 00:00:00 2001 From: MemRelay Date: Sun, 25 Oct 2026 05:42:05 +0800 Subject: [PATCH] create: Checkpoint 2026-10-24 21:42:00 UTC [89d308d606] MemRelay-Operation: checkpoint-save:nqitools-checkpoint-download-scheduler-20261025 MemRelay-Resource: f7460953-7454-48db-98ff-fd6c751a2f4d --- ...nt 2026-10-24 21-42-00 UTC [89d308d606].md | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/Checkpoint 2026-10-24 21-42-00 UTC [89d308d606].md diff --git a/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/Checkpoint 2026-10-24 21-42-00 UTC [89d308d606].md b/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/Checkpoint 2026-10-24 21-42-00 UTC [89d308d606].md new file mode 100644 index 0000000..1256292 --- /dev/null +++ b/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/Checkpoint 2026-10-24 21-42-00 UTC [89d308d606].md @@ -0,0 +1,26 @@ +--- +title: Checkpoint 2026-10-24 21:42:00 UTC [89d308d606] +type: checkpoint +permalink: main/projects/46777563-9cef-472c-b0c8-31ee36f2ea1c/checkpoint-2026-10-24-21-42-00-utc-89d308d606 +stable_id: f7460953-7454-48db-98ff-fd6c751a2f4d +scope: project +memory_type: checkpoint +project_id: 46777563-9cef-472c-b0c8-31ee36f2ea1c +usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 +status: active +revision: 1 +request_id: nqitools-checkpoint-download-scheduler-20261025 +created_at: '2026-10-24T21:42:00.474169+00:00' +updated_at: '2026-10-24T21:42:00.474169+00:00' +tags: +- handoff +- download +--- + +已完成全市流式下载、暂停/停止/继续、同时任务数和按秒命名的任务目录,并接上每 3 分钟登录续期。后端单元测试 24 项通过。没有在正在运行的窗口里点过界面。当前 npm run tauri dev 是旧进程,Python 不会热重载,用户需要关掉窗口后重新执行 npm run tauri dev。 + +实现要点:全市编号按约 0.05 度分块,读到一块就交给该任务自己的并发协程下载,队列有上限。暂停清掉 run_event,编号读取和下载都停在原地;停止置取消并收回协程,继续时重新分块且跳过 progress.jsonl 里已完成的编号。同时任务数默认 2,接口是 GET/PUT /api/download/settings,数据在 data/settings.json。等待任务可取消。任务号形如 20260921120009,同一秒用 _2。指定保存目录时,CSV 放在该目录下的任务号文件夹。续期访问 getCasUser、checkUserPasswordUpdated、getOnLineCount,并在有角色时访问 roleCityMapping/cities。 + +下一步:用户重启开发窗口后,用两个地市任务确认第二个会等待,暂停时全市编号不再继续请求,继续后接着下。安装包仍是旧的,未重新打包。 + +给下个会话:不要提交 data、Temp、.cursor,也不要把会话 cookie 或密码写入记忆。没有远端,不要推送。uvicorn 无 --reload,改后端必须重启 tauri dev。整层 WFS 不要再探测,分块 INTERSECTS 才返回。20 米全市数量很大,暂停只是停住,不会释放已读编号的去重集合。 \ No newline at end of file