Skip to content
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

feat: able to stop multiple tasks #1504

Merged
merged 2 commits into from
Oct 15, 2018
Merged

Conversation

nikonov1101
Copy link
Member

@nikonov1101 nikonov1101 commented Sep 17, 2018

This commit adds a new method to the Node API which provides able to stop several tasks at once.

Closes #1488 #1487

@3Hren 3Hren added this to the v0.4.12 milestone Sep 17, 2018
for _, err := range errors.GetResponse() {
status := "OK"
if len(err.Error) != 0 {
status = "FAIL " + err.GetError()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FAIL :

@@ -532,6 +532,20 @@ func printErrorById(cmd *cobra.Command, errors *pb.ErrorByID) {
}
}

func printStringErrorsById(cmd *cobra.Command, errors *pb.ErrorByStringID) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

printErrorsByStringId

Copy link
Member

@3Hren 3Hren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason behind of doing this in Node API instead of Worker?

@@ -532,6 +532,20 @@ func printErrorById(cmd *cobra.Command, errors *pb.ErrorByID) {
}
}

func printStringErrorsById(cmd *cobra.Command, errors *pb.ErrorByStringID) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function is some kind similar to the printErrorById. Please, find a way to decompose this.

@nikonov1101 nikonov1101 force-pushed the feat/node/stop-multiple-tasks branch 2 times, most recently from 644d062 to 54dbb6e Compare September 20, 2018 15:55
@nikonov1101 nikonov1101 modified the milestones: v0.4.12, v0.4.13 Oct 2, 2018
@antmat antmat force-pushed the feat/node/stop-multiple-tasks branch from 54dbb6e to 981f57b Compare October 12, 2018 13:43
This commit adds a new method to the Node API which provides able to stop several tasks at once.
@3Hren 3Hren merged commit a411671 into master Oct 15, 2018
@3Hren 3Hren deleted the feat/node/stop-multiple-tasks branch October 15, 2018 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants