You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2012/05/14 23:27:20 UTC
svn commit: r1338434 - in /incubator/mesos/trunk/src:
examples/python/test_framework.py
python/native/mesos_scheduler_driver_impl.cpp
Author: benh
Date: Mon May 14 21:27:20 2012
New Revision: 1338434
URL: http://svn.apache.org/viewvc?rev=1338434&view=rev
Log:
Bug fix in test_framework.py and Python/C++ binding for declineOffer() (contributed by Harvey Feng, https://reviews.apache.org/r/4960).
Modified:
incubator/mesos/trunk/src/examples/python/test_framework.py
incubator/mesos/trunk/src/python/native/mesos_scheduler_driver_impl.cpp
Modified: incubator/mesos/trunk/src/examples/python/test_framework.py
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/examples/python/test_framework.py?rev=1338434&r1=1338433&r2=1338434&view=diff
==============================================================================
--- incubator/mesos/trunk/src/examples/python/test_framework.py (original)
+++ incubator/mesos/trunk/src/examples/python/test_framework.py Mon May 14 21:27:20 2012
@@ -65,7 +65,7 @@ class TestScheduler(mesos.Scheduler):
mem.scalar.value = TASK_MEM
tasks.append(task)
- driver.launchTasks(offer.id, tasks)
+ driver.launchTasks(offer.id, tasks)
def statusUpdate(self, driver, update):
print "Task %s is in state %d" % (update.task_id.value, update.state)
Modified: incubator/mesos/trunk/src/python/native/mesos_scheduler_driver_impl.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/python/native/mesos_scheduler_driver_impl.cpp?rev=1338434&r1=1338433&r2=1338434&view=diff
==============================================================================
--- incubator/mesos/trunk/src/python/native/mesos_scheduler_driver_impl.cpp (original)
+++ incubator/mesos/trunk/src/python/native/mesos_scheduler_driver_impl.cpp Mon May 14 21:27:20 2012
@@ -106,6 +106,10 @@ PyMethodDef MesosSchedulerDriverImpl_met
(PyCFunction) MesosSchedulerDriverImpl_killTask,
METH_VARARGS,
"Kill the task with the given ID"},
+ {"declineOffer",
+ (PyCFunction) MesosSchedulerDriverImpl_declineOffer,
+ METH_VARARGS,
+ "Decline a Mesos offer"},
{"reviveOffers",
(PyCFunction) MesosSchedulerDriverImpl_reviveOffers,
METH_NOARGS,