code: def registered(self, driver, frameworkId, masterInfo):
          
          log.debug("Registered with framework ID %s", frameworkId.value)
          # Save the framework ID
          self.frameworkId = frameworkId.value
docs: Invoked when the scheduler successfully registers with a Mesos master