add timed_out to allowed_transitions list (#338)

This commit is contained in:
Shuchang Zheng 2024-05-25 18:52:03 -07:00 committed by GitHub
parent 2b4829f87a
commit a36b65b894
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -106,6 +106,7 @@ class TaskStatus(StrEnum):
TaskStatus.failed: set(),
TaskStatus.terminated: set(),
TaskStatus.completed: set(),
TaskStatus.timed_out: set(),
}
return new_status in allowed_transitions[self]