-
Notifications
You must be signed in to change notification settings - Fork 188
worker: create subtask for paused stage #1165
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
op = pb.TaskOp_Resume | ||
} else if stage.Expect == pb.Stage_Paused { | ||
op = pb.TaskOp_Pause | ||
} | ||
case stage.IsDeleted: | ||
op = pb.TaskOp_Stop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will stop-task report ErrWorkerSubTaskNotFound?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for stop-task
, we won't create/init one subtask and then stop it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rest LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
Signed-off-by: ti-srebot <[email protected]>
cherry pick to release-2.0 in PR #1183 |
Signed-off-by: ti-srebot <[email protected]> Co-authored-by: Xuecheng Zhang <[email protected]>
What problem does this PR solve?
close #1090
What is changed and how it works?
Check List
Tests
Code changes
Side effects
Related changes