Use latest status when checking recovered jobs

This commit is contained in:
阿白叔 committed 2026-10-14 13:38:43 +08:00
1 parent f3d0d7a93d
commit 730c76081f
2 files changed
+4 -3

No files matched your search

@@ -348,7 +348,8 @@ class QuickRunPreparer:
current_root = self._data_root / "quick-run"
if self.evidence_path(task_id) == current_root and (current_root / "status.tsv").is_file():
recorded = _read_status_details(current_root / "status.tsv")
if any(state == BATCH_SAVED_UNVERIFIED_STATE for _, state, _, _ in recorded):
latest_states = {job_id: state for job_id, state, _, _ in recorded}
if any(state == BATCH_SAVED_UNVERIFIED_STATE for state in latest_states.values()):
_write_uncertain_flag(uncertain_path, "saved_readback_unverified")
raise TaskCenterError("quick_run_uncertain", "saved readback was not verified; reconcile before continuing")
value_mode = _value_mode(copy_part_number_to_value)