feat(shipping-notice): 增强发货通知与订单抽取功能,支持多进程处理与紧急停止
- 移除不再使用的 SHIPPING_NOTICE_LAYOUT_PARSER_REVISION 配置 - 在环境配置中新增 SHIPPING_NOTICE_WORKER_CONCURRENCY 和 SHIPPING_NOTICE_JOB_RUNNING_TIMEOUT_SECONDS - 实现发货通知 worker 进程,支持并发处理订单抽取任务 - 引入紧急停止功能,允许管理员在运行中控制订单解析状态 - 更新相关 API,支持读取与设置紧急停止状态 - 增强文档与代码注释,反映新的业务逻辑与功能要求
This commit is contained in:
1 parent
d0fe084999
commit
b352c281d5
149 files changed
+12550
-1874
No files matched your search
@@ -246,13 +246,13 @@ if [[ "${FRONTEND_CHANGED}" == "true" ]]; then
|
||||
services+=("hxops-frontend")
|
||||
fi
|
||||
if [[ "${BACKEND_CHANGED}" == "true" ]]; then
|
||||
# 知识库清洗与 backend 共用镜像;仅重建 backend 时 worker 会继续跑旧容器/旧代码
|
||||
services+=("hxops-backend" "hxops-kb-worker")
|
||||
# 后台 worker 与 backend 共用镜像;仅重建 backend 时 worker 会继续跑旧容器/旧代码
|
||||
services+=("hxops-backend" "hxops-kb-worker" "hxops-shipping-worker")
|
||||
fi
|
||||
|
||||
# 如果只是部署配置变更(如 compose/env/脚本),但前后端代码未改,则两边都更新
|
||||
if [[ ${#services[@]} -eq 0 && "${DEPLOY_CONFIG_CHANGED}" == "true" ]]; then
|
||||
services=("hxops-frontend" "hxops-backend" "hxops-kb-worker")
|
||||
services=("hxops-frontend" "hxops-backend" "hxops-kb-worker" "hxops-shipping-worker")
|
||||
fi
|
||||
|
||||
# 无变更则直接跳过,避免无意义重启
|
||||
|
||||
@@ -62,7 +62,7 @@ function Stop-StaleHxopsPythonProcesses {
|
||||
$patterns = @(
|
||||
[regex]::Escape((Join-Path $BackendPath "run.py")),
|
||||
[regex]::Escape((Join-Path $BackendPath "worker_kb.py")),
|
||||
[regex]::Escape((Join-Path $BackendPath "workers\worker_shipping_notice.py")),
|
||||
[regex]::Escape((Join-Path $BackendPath "worker_shipping.py")),
|
||||
[regex]::Escape((Join-Path $RepoRoot "scripts\rpa\freight_rpa_worker.py"))
|
||||
)
|
||||
|
||||
@@ -331,7 +331,7 @@ function Start-ShippingWorkerWindow {
|
||||
-Title "shipping-worker" `
|
||||
-WorkingDirectory $BackendPath `
|
||||
-EnvPrefix (Get-DatabaseUrlExport -Mode $Mode -DbUrl $DbUrl) `
|
||||
-Command ".\venv\Scripts\python.exe .\workers\worker_shipping_notice.py"
|
||||
-Command ".\venv\Scripts\python.exe .\worker_shipping.py"
|
||||
}
|
||||
|
||||
function Start-FreightRpaWorkerWindow {
|
||||
|
||||
Reference in new issue
Block a user