chengkai3
|
c6d547a985
|
feat: 高程导入改为异步非阻塞,避免大文件上传时前端长时间等待
改动范围:
- api/app/services/elevation_service.py
- web/src/app/admin/elevation/page.tsx
改动点:
1. API 端快速返回(elevation_service.py)
- 修改 `import_dataset_data_files`:不再在请求内同步执行暂存
- 新增 `_prepare_upload_files_for_staging`:快速读取上传文件并序列化为 base64
- API 端立即创建任务并返回,文件内容暂存在 `staged_files_json`
2. Worker 端异步暂存(elevation_service.py)
- 修改 `execute_dataset_data_import_job`:从 `staged_files_json` 读取文件
- 新增 `_stage_dataset_import_job_uploads_from_serialized`:从序列化数据恢复并暂存
- Worker 负责完整的"暂存→导入→分析"流程
3. 前端阶段展示(page.tsx)
- 更新 `importJobStageLabel`:添加 "pending" 和 "staging" 阶段标签
- 用户可看到"等待执行"和"暂存文件"等阶段
关联影响:
- 数据库 `staged_files_json` 字段存储格式变更(存储序列化的文件内容)
- 任务初始状态改为 "pending",Worker 启动后变为 "staging"
技术方案:
- 采用 base64 序列化文件内容存入数据库
- 保持现有暂存目录和清理逻辑不变
- WebSocket 进度推送机制继续有效
验证:
- Python 语法检查通过
- 修改符合现有代码风格和约定
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-12 12:42:17 +08:00 |
|
chengkai3
|
61a1954034
|
[feat]:[FL-80][高程数据导入异步并支持进度回看]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 15:38:10 +08:00 |
|
chengkai3
|
3a8027803c
|
[fix/feat]:[FL-77][修复杆塔高程回填任务 actor_user_id 传递]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 08:31:11 +08:00 |
|
chengkai3
|
2a54857fe1
|
[fix/feat]:[FL-76][高程数据导入报错]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 08:26:51 +08:00 |
|
chengkai3
|
2ad2405cd3
|
[fix/feat]:[FL-74][高程数据支持DEM地形瓦片预览和线路地形图]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-10 00:26:09 +08:00 |
|
chengkai3
|
4e2b3dcdad
|
[fix]:[FL-57][统一计算任务到 Celery worker]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-09 08:29:10 +08:00 |
|
chengkai3
|
aebf152cd4
|
[migrate]:[FL-24][参数准备闭环与就绪校验]
Co-authored-by: multica-agent <github@multica.ai>
|
2026-06-07 20:37:53 +08:00 |
|
Admin
|
7c121b8948
|
优化高程数据管理交互并补充分析进度与文件明细能力
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-03 15:24:47 +08:00 |
|
Admin
|
a09d12c3c3
|
修复高程预览rasterio.warp子模块未加载导致采样失败
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-03 15:00:34 +08:00 |
|
Admin
|
0952edd402
|
支持高程批量导入进度与异步分析任务监控
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-03 14:20:19 +08:00 |
|
Admin
|
df7c6ca14e
|
完成高程数据集优化并支持多文件导入自动分析
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-03 13:42:51 +08:00 |
|
Admin
|
3362b6b67e
|
展示sample_tx_err首条异常原文
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-03 12:14:32 +08:00 |
|
Admin
|
779acf8e1e
|
支持高程数据管理批量导入
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-03 11:59:40 +08:00 |
|
Admin
|
4b0c7eda69
|
新增高程预览诊断信息面板
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-03 11:29:06 +08:00 |
|
Admin
|
244834c549
|
支持高程数据集删除
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-03 11:13:25 +08:00 |
|
Admin
|
556da5c155
|
改造高程预览为地形网格渲染
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-03 10:43:23 +08:00 |
|
Admin
|
8672f4b7cc
|
新增高程数据Cesium预览功能
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-03 10:00:16 +08:00 |
|
Admin
|
fd265a893e
|
修复高程分析 rasterio 缺失报错并增加栅格能力校验
Co-authored-by: multica-agent <github@multica.ai>
|
2026-05-03 00:12:43 +08:00 |
|
chengkai3
|
cf0a5c978e
|
refactor: remove scheduler service and unify celery dispatch
|
2026-05-02 10:22:34 +08:00 |
|
chengkai3
|
0019aa0fba
|
feat: add scheduler and flower monitoring with worker registry
|
2026-05-01 21:05:42 +08:00 |
|
chengkai3
|
850a2e7bc3
|
feat: support img/tif elevation dataset apply workflow
|
2026-05-01 18:09:38 +08:00 |
|
chengkai3
|
e5a33d7f9a
|
feat: add elevation dataset management and line altitude apply jobs
|
2026-05-01 17:10:19 +08:00 |
|