Add REMOVE and ORPHANED to TaskState
This fix tries to address the issue raised in 36142 where there are discrepancies between Swarm API and swagger.yaml. This fix adds two recently added state `REMOVE` and `ORPHANED` to TaskState. This fix fixes 36142. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> (cherry picked from commit a40687f5ac7df27bc6c6c3a6f69513a397a1a05a) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
831e67711b
commit
246956ffb1
@ -2788,6 +2788,8 @@ definitions:
|
||||
- "shutdown"
|
||||
- "failed"
|
||||
- "rejected"
|
||||
- "remove"
|
||||
- "orphaned"
|
||||
|
||||
Task:
|
||||
type: "object"
|
||||
|
||||
@ -36,6 +36,10 @@ const (
|
||||
TaskStateFailed TaskState = "failed"
|
||||
// TaskStateRejected REJECTED
|
||||
TaskStateRejected TaskState = "rejected"
|
||||
// TaskStateRemove REMOVE
|
||||
TaskStateRemove TaskState = "remove"
|
||||
// TaskStateOrphaned ORPHANED
|
||||
TaskStateOrphaned TaskState = "orphaned"
|
||||
)
|
||||
|
||||
// Task represents a task.
|
||||
|
||||
Reference in New Issue
Block a user