mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
A failed batch sub_task restarts for a re-run 🟥
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
5b60717133
commit
3d643965b5
1 changed files with 14 additions and 0 deletions
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue