Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-188

declineOffer() should be added to Python-C++ bindings and used in test_framework.py

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • python api
    • None

    Description

      Came across this while trying to call driver.declineOffer()

      Traceback (most recent call last):
      File "./nmpiexec.py", line 76, in resourceOffers
      driver.declineOffer(offer.id)
      AttributeError: '_mesos.MesosSchedulerDriverImpl' object has no attribute 'declineOffer'

      It should involve a quick fix in src/python/native/mesos_scheduler_diver_imp.cpp

      declineOffer() should also be used in src/examples/python/test_framework.py, which currently holds offers that it should decline if tasksLaunched >= TOTAL_TASKS

      Attachments

        Activity

          People

            hfeng Harvey Feng
            hfeng Harvey Feng
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: