ephraimbuddy commented on a change in pull request #17207:
URL: https://github.com/apache/airflow/pull/17207#discussion_r693832397
##########
File path: airflow/executors/celery_executor.py
##########
@@ -125,8 +129,10 @@ def _execute_in_fork(command_to_exec: CommandType) -> None:
os._exit(ret)
-def _execute_in_subprocess(command_to_exec: CommandType) -> None:
+def _execute_in_subprocess(command_to_exec: CommandType, celery_task_id:
Optional[str] = None) -> None:
env = os.environ.copy()
+ if celery_task_id:
+ env["celery_task_id"] = celery_task_id
Review comment:
Looks like we should do `env['external_executor_id'] = celery_task_id`
here, right 🤔?
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]