kaxil commented on a change in pull request #6905: [AIRFLOW-6361] Run
LocalTaskJob directly in Celery task
URL: https://github.com/apache/airflow/pull/6905#discussion_r362008246
##########
File path: airflow/executors/celery_executor.py
##########
@@ -63,13 +62,9 @@ def execute_command(command_to_exec: CommandType) -> None:
"""Executes command."""
log = LoggingMixin().log
log.info("Executing command in Celery: %s", command_to_exec)
- env = os.environ.copy()
try:
- subprocess.check_call(command_to_exec, stderr=subprocess.STDOUT,
Review comment:
That would also mean all the Connections created via Environment variables
won't work unless LocalTaskJob copies the current vars
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services