Updated the comments of TASK_FINISHED to make it more clear. Review: https://reviews.apache.org/r/62685
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/065a9cae Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/065a9cae Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/065a9cae Branch: refs/heads/1.4.x Commit: 065a9cae060795fee082d5adf1ca1130b5827762 Parents: c844db9 Author: Qian Zhang <zhq527...@gmail.com> Authored: Fri Sep 29 15:28:58 2017 +0800 Committer: Qian Zhang <zhq527...@gmail.com> Committed: Tue Nov 14 17:31:26 2017 +0800 ---------------------------------------------------------------------- include/mesos/mesos.proto | 4 +++- include/mesos/v1/mesos.proto | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/065a9cae/include/mesos/mesos.proto ---------------------------------------------------------------------- diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto index 3449c2d..c602501 100644 --- a/include/mesos/mesos.proto +++ b/include/mesos/mesos.proto @@ -2028,7 +2028,9 @@ enum TaskState { // the TASK_KILLING_STATE capability. TASK_KILLING = 8; // The task is being killed by the executor. - TASK_FINISHED = 2; // TERMINAL: The task finished successfully. + // The task finished successfully on its own without external interference. + TASK_FINISHED = 2; // TERMINAL. + TASK_FAILED = 3; // TERMINAL: The task failed to finish successfully. TASK_KILLED = 4; // TERMINAL: The task was killed by the executor. TASK_ERROR = 7; // TERMINAL: The task description contains an error. http://git-wip-us.apache.org/repos/asf/mesos/blob/065a9cae/include/mesos/v1/mesos.proto ---------------------------------------------------------------------- diff --git a/include/mesos/v1/mesos.proto b/include/mesos/v1/mesos.proto index 4d905d3..4612b40 100644 --- a/include/mesos/v1/mesos.proto +++ b/include/mesos/v1/mesos.proto @@ -2011,7 +2011,9 @@ enum TaskState { // the TASK_KILLING_STATE capability. TASK_KILLING = 8; // The task is being killed by the executor. - TASK_FINISHED = 2; // TERMINAL: The task finished successfully. + // The task finished successfully on its own without external interference. + TASK_FINISHED = 2; // TERMINAL. + TASK_FAILED = 3; // TERMINAL: The task failed to finish successfully. TASK_KILLED = 4; // TERMINAL: The task was killed by the executor. TASK_ERROR = 7; // TERMINAL: The task description contains an error.