feat: add confirmed DSH task management and execution control

This commit is contained in:
阿白叔 committed 2026-10-30 15:45:45 +08:00
1 parent be382a117d
commit f861a3d386
25 files changed
+1190 -25

No files matched your search

+7
View File
@@ -63,6 +63,13 @@ def test_tasks_execute_in_confirmed_order_and_finished_queue_does_not_repeat(tmp
assert len(service.calls) == 4
def test_changed_confirmed_plan_is_rejected_before_any_executor(tmp_path):
service = Service(tmp_path)
with pytest.raises(TaskCenterError, match='assistant_stale'):
execute_task_queue(service, ('A',), stop_event=Event(), expected_plan_hashes={'A': 'stale'})
assert not service.calls
def test_safe_failure_is_reported_and_next_task_runs(tmp_path):
service = Service(tmp_path, {'A': TaskCenterError('quick_run_preflight', 'target absent')})
result = execute_task_queue(service, ('A', 'B'), stop_event=Event())