mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nniel...@apache.org
Subject git commit: Added reconcileTasks to python scheduler.
Date Thu, 25 Sep 2014 21:33:31 GMT
Repository: mesos
Updated Branches:
  refs/heads/master bef49064a -> f1da58fb2


Added reconcileTasks to python scheduler.

The last step of wiring up reconcileTasks in the python bindings.

Review: https://reviews.apache.org/r/25986


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/f1da58fb
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/f1da58fb
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/f1da58fb

Branch: refs/heads/master
Commit: f1da58fb22b28afd65313f6801b35bce436199ab
Parents: bef4906
Author: Niklas Nielsen <nik@qni.dk>
Authored: Thu Sep 25 14:12:12 2014 -0700
Committer: Niklas Q. Nielsen <niklas@mesosphere.io>
Committed: Thu Sep 25 14:12:12 2014 -0700

----------------------------------------------------------------------
 src/python/interface/src/mesos/interface/__init__.py | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/f1da58fb/src/python/interface/src/mesos/interface/__init__.py
----------------------------------------------------------------------
diff --git a/src/python/interface/src/mesos/interface/__init__.py b/src/python/interface/src/mesos/interface/__init__.py
index 818f41b..8af649c 100644
--- a/src/python/interface/src/mesos/interface/__init__.py
+++ b/src/python/interface/src/mesos/interface/__init__.py
@@ -221,7 +221,15 @@ class SchedulerDriver(object):
       retransmitted in any reliable fashion.
     """
 
-  # TODO(bmahler): Add reconcileTasks!
+  def reconcileTasks(self, tasks):
+    """
+      Allows the framework to query the status for non-terminal tasks.
+      This causes the master to send back the latest task status for
+      each task in 'statuses', if possible. Tasks that are no longer
+      known will result in a TASK_LOST update. If statuses is empty,
+      then the master will send the latest status for each task
+      currently known.
+    """
 
 class Executor(object):
   """


Mime
View raw message