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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: python api
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: