Return-Path: X-Original-To: apmail-mesos-commits-archive@www.apache.org Delivered-To: apmail-mesos-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A740B179BA for ; Thu, 25 Sep 2014 21:33:31 +0000 (UTC) Received: (qmail 42059 invoked by uid 500); 25 Sep 2014 21:33:31 -0000 Delivered-To: apmail-mesos-commits-archive@mesos.apache.org Received: (qmail 42037 invoked by uid 500); 25 Sep 2014 21:33:31 -0000 Mailing-List: contact commits-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list commits@mesos.apache.org Received: (qmail 42028 invoked by uid 99); 25 Sep 2014 21:33:31 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Sep 2014 21:33:31 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 2DC2388090D; Thu, 25 Sep 2014 21:33:31 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: nnielsen@apache.org To: commits@mesos.apache.org Message-Id: <971c32b38a5d4ba9a2ee64d0112dc03b@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: git commit: Added reconcileTasks to python scheduler. Date: Thu, 25 Sep 2014 21:33:31 +0000 (UTC) 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 Authored: Thu Sep 25 14:12:12 2014 -0700 Committer: Niklas Q. Nielsen 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): """