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

Provide a kill task command #47

Open
coderfi opened this issue Dec 5, 2014 · 2 comments
Open

Provide a kill task command #47

coderfi opened this issue Dec 5, 2014 · 2 comments

Comments

@coderfi
Copy link

coderfi commented Dec 5, 2014

Seems like there is an API available to help facilitate a kill task command, https://issues.apache.org/jira/browse/MESOS-1390

I propose the following syntax:

mesos kill [-y] [task-id]
  • [task-id] is the FULL task-id

This is different to the usage of the other commands.
The other commands matches on substrings of task name, but they are read-only in nature.
A kill command is quite different, it would be quite unfortunate that we accidentally kill a task we did not mean to.
The kill command should provide a summary about the task about to be killed and prompt the user for confirmation.

  • [-y] is optional, if set, then assume yes to the confirmation

The command should return an exit code 0 if something was killed.
It should also return an exit code 0 if no task was found to kill. Some external scripts may want to put the kill command on a timeout condition, and it should not error out just because there was nothing to kill at the timeout time (i.e. the task already completed).

Otherwise, return non zero if the user said no or the task could not be killed.

@lhoss
Copy link

lhoss commented Jan 26, 2017

and plz add a button to the UI -> long open issue: https://issues.apache.org/jira/browse/MESOS-5068

@julienlau
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants