A failed batch sub_task restarts for a re-run 🟥

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-07-07 11:05:34 +00:00
parent 5b60717133
commit 3d643965b5

View file

@ -58,6 +58,20 @@ def test_start_rejects_from_terminal_status() -> None:
st.start()
def test_start_restarts_a_failed_subtask_for_a_rerun() -> None:
# arrange
st = SubTask.create(task_id=uuid4())
st.start()
st.fail(RuntimeError("degenerate prediction"))
# act
st.start()
# assert
assert st.status is SubTaskStatus.IN_PROGRESS
assert st.job_completed is None
def test_complete_marks_outputs_and_job_completed() -> None:
# arrange
st = SubTask.create(task_id=uuid4())