Skip to content

Commit 4ac9a6d

Browse files
author
Abhishek Bafna
committed
export scheduler env variable into worker pods.
1 parent f7050fb commit 4ac9a6d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

airflow/contrib/kubernetes/worker_configuration.py

+7
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ def _get_environment(self):
153153
self.kube_config.git_subpath # dags
154154
)
155155
env['AIRFLOW__CORE__DAGS_FOLDER'] = dag_volume_mount_path
156+
157+
# TODO This change can be submitted into the apache as well.
158+
# Set the scheduler env into the worker pod.
159+
os_env = os.environ
160+
os_env.update(env)
161+
env = os_env
162+
156163
return env
157164

158165
def _get_configmaps(self):

0 commit comments

Comments
 (0)