You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by qi...@apache.org on 2019/12/30 01:27:51 UTC

[mesos] 01/03: Added resource limits into `TaskInfo`.

This is an automated email from the ASF dual-hosted git repository.

qianzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit 33a4f5883066a235ea45bcf1b8b287e77f74fbec
Author: Qian Zhang <zh...@gmail.com>
AuthorDate: Tue Dec 3 21:36:01 2019 +0800

    Added resource limits into `TaskInfo`.
    
    Review: https://reviews.apache.org/r/71855
---
 include/mesos/mesos.proto    | 3 +++
 include/mesos/v1/mesos.proto | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/include/mesos/mesos.proto b/include/mesos/mesos.proto
index 7d77ddd..e48d6f3 100644
--- a/include/mesos/mesos.proto
+++ b/include/mesos/mesos.proto
@@ -2283,6 +2283,9 @@ message TaskInfo {
   // It is the executor's responsibility to implement this, so it might not be
   // supported by all custom executors.
   optional DurationInfo max_completion_time = 14;
+
+  // Resource limits associated with the task.
+  map<string, Value.Scalar> limits = 15;
 }
 
 
diff --git a/include/mesos/v1/mesos.proto b/include/mesos/v1/mesos.proto
index 7abb6ba..9533261 100644
--- a/include/mesos/v1/mesos.proto
+++ b/include/mesos/v1/mesos.proto
@@ -2272,6 +2272,9 @@ message TaskInfo {
   // It is the executor's responsibility to implement this, so it might not be
   // supported by all custom executors.
   optional DurationInfo max_completion_time = 14;
+
+  // Resource limits associated with the task.
+  map<string, Value.Scalar> limits = 15;
 }