feat(production): 持久化动作检查点并完善恢复重试流程

- production_runs 新增动作阶段、尝试次数、版本及人工确认字段
- 提供兼容 PostgreSQL 9.5 的幂等升级脚本和数据库结构检查
- 工序推进、动作完成检查点和审计记录使用同一事务
- 机器人命令单次发送,完成反馈先持久化再清握手
- 已完成动作恢复仅补握手或数据库记录,避免重复执行
- 恢复/重试按钮固定显示在清除报警前,加入明确人工处理选项
- 记录人工决定、操作人及现场核对信息,拒绝过期确认
- 区分普通暂停继续、故障恢复与终止后的视觉锁解除
- 补齐视觉目标跨重启校验、异步失败及迟到回调防护
- 检测结果关联动作和尝试次数,重试清除旧结果缓存
This commit is contained in:
lidg
2026-10-29 21:12:15 +08:00
parent df804963e5
commit 4046471c1a
15 changed files with 1763 additions and 659 deletions
+11
View File
@@ -45,6 +45,10 @@ void ProductionWorker::ensureService()
this, &ProductionWorker::timeoutRecoveryRequired);
connect(m_service, &ProductionService::recoveryCompleted,
this, &ProductionWorker::recoveryCompleted);
connect(m_service, &ProductionService::recoveryDecisionRequired,
this, &ProductionWorker::recoveryDecisionRequired);
connect(m_service, &ProductionService::recoveryBusyChanged,
this, &ProductionWorker::recoveryBusyChanged);
}
void ProductionWorker::requestStopImmediate()
@@ -119,6 +123,13 @@ void ProductionWorker::requestRecover()
reportFailure(m_service->recover(&error), error);
}
void ProductionWorker::requestRecoveryDecision(const QJsonObject &decision)
{
ensureService();
QString error;
reportFailure(m_service->submitRecoveryDecision(decision, &error), error);
}
void ProductionWorker::requestMarkNg()
{
ensureService();