A run with finished and queued batches rolls up in progress, not waiting 🟥

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Khalim Conn-Kowlessar 2026-07-07 11:03:28 +00:00
parent 71a86f87fc
commit 1c7b71bcce

View file

@ -105,6 +105,18 @@ def test_recalculate_any_in_progress_marks_in_progress() -> None:
assert t.job_completed is None
def test_recalculate_complete_and_waiting_mix_marks_in_progress() -> None:
# arrange
t = Task.create(task_source="manual:test")
# act
t.recalculate_from_subtasks([SubTaskStatus.COMPLETE, SubTaskStatus.WAITING])
# assert
assert t.status is TaskStatus.IN_PROGRESS
assert t.job_completed is None
def test_recalculate_all_complete_marks_complete() -> None:
# arrange
t = Task.create(task_source="manual:test")