def _populate_task_data_for_job(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
        )
dataset/ETHPy150Open galaxyproject/pulsar/pulsar/mesos/framework.py/PulsarScheduler._populate_task_data_for_job/original