pingzh opened a new issue, #23540: URL: https://github.com/apache/airflow/issues/23540
### Apache Airflow version 2.2.4 ### What happened When the task is executed via `exec` https://github.com/apache/airflow/blob/2.2.4/airflow/task/task_runner/standard_task_runner.py#L43 , the task std log is not captured. Please see the image: I manually forced the `StandardTaskRunner` to use `_start_by_exec`and ran a task run command:  ### What you think should happen instead _No response_ ### How to reproduce You can set the `run_as_user` on your task or edit the installed pkg to only use `_start_by_exec` in the StandardTaskRunner. ### Operating System Apple M1 Max, version: 12.2 ### Versions of Apache Airflow Providers _No response_ ### Deployment Other ### Deployment details on my local Mac. ### Anything else _No response_ ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
