-
Notifications
You must be signed in to change notification settings - Fork 1
feat: implement shutdown strategies and SUSPENDED task status #1151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
20ba89a
f33c501
e311faa
5f84389
614a48c
44047b7
a43317e
aadf566
44d531a
8f4457f
1043fd4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -231,14 +231,17 @@ class TaskStatus(StrEnum): | |
| Summary for quick reference: | ||
|
|
||
| CREATED -> ASSIGNED | ||
| ASSIGNED -> IN_PROGRESS | BLOCKED | CANCELLED | FAILED | INTERRUPTED | ||
| IN_PROGRESS -> IN_REVIEW | BLOCKED | CANCELLED | FAILED | INTERRUPTED | ||
| ASSIGNED -> IN_PROGRESS | BLOCKED | CANCELLED | FAILED | ||
| | INTERRUPTED | SUSPENDED | ||
| IN_PROGRESS -> IN_REVIEW | BLOCKED | CANCELLED | FAILED | ||
| | INTERRUPTED | SUSPENDED | ||
| IN_REVIEW -> COMPLETED | IN_PROGRESS (rework) | BLOCKED | CANCELLED | ||
| BLOCKED -> ASSIGNED (unblocked) | ||
| FAILED -> ASSIGNED (reassignment for retry) | ||
| INTERRUPTED -> ASSIGNED (reassignment on restart) | ||
| COMPLETED and CANCELLED are terminal states. | ||
| FAILED and INTERRUPTED are non-terminal (can be reassigned). | ||
| FAILED, INTERRUPTED, and SUSPENDED are non-terminal (can be reassigned). | ||
| SUSPENDED -> ASSIGNED (resume from checkpoint) | ||
| """ | ||
|
|
||
| CREATED = "created" | ||
|
|
@@ -249,6 +252,7 @@ class TaskStatus(StrEnum): | |
| BLOCKED = "blocked" | ||
| FAILED = "failed" | ||
| INTERRUPTED = "interrupted" | ||
| SUSPENDED = "suspended" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
🤖 Prompt for AI AgentsDecomposition rollups are not yet
🤖 Prompt for AI Agents |
||
| CANCELLED = "cancelled" | ||
|
|
||
|
|
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.