def METHOD_NAME(self, task, job):
    if "env" not in job:
        job["env"] = []
    job["env"].extend(self._mesos_env_vars())
    # In case job itself wants to utilize Mesos
    # populate environment variables.
    task_data = dict(
        job=job,
        manager=self.manager_options
    )
    task.data = to_base64_json(
        task_data
    )