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

@@ -25,10 +25,10 @@ Commands run from the worktree:
```text
PYTHONPATH=src python -m pytest tests/v1_1 -q
34 passed in 3.77s
36 passed in 5.06s
PYTHONPATH=src python -m pytest tests/integration/test_quick_part_replace_contract.py tests/trial_task_center/test_recovery.py tests/trial_task_center/test_value_options.py -q
45 passed in 7.96s
45 passed in 7.57s
```
The V1.1 suite covers transaction rollback/reopen, schema 5 to 6 migration, project deduplication and recreation, target subset isolation, empty target safety, forged identity rejection, Excel roundtrip/atomic validation, per-task evidence roots, native selector checks, unselected-change detection, and purge cleanup.
@@ -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)