Skip to content

Commit

Permalink
Export scheduler env variable into worker pods. (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekbafna authored Apr 9, 2020
1 parent f7050fb commit 8a689af
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions airflow/contrib/kubernetes/worker_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ def _get_environment(self):
self.kube_config.git_subpath # dags
)
env['AIRFLOW__CORE__DAGS_FOLDER'] = dag_volume_mount_path

# TODO This change can be submitted into the apache as well.
# Set the scheduler env into the worker pod.
os_env = os.environ
os_env.update(env)
env = os_env

return env

def _get_configmaps(self):
Expand Down

0 comments on commit 8a689af

Please sign in to comment.