You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/05/06 17:36:38 UTC
[GitHub] [airflow] pingzh opened a new issue, #23540: tasks log is not correctly captured
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: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] pingzh commented on issue #23540: tasks log is not correctly captured
Posted by GitBox <gi...@apache.org>.
pingzh commented on issue #23540:
URL: https://github.com/apache/airflow/issues/23540#issuecomment-1121604396
while investigating this issue, i found that if i set `DONOT_MODIFY_HANDLERS` to `True`, the `airflow tasks run` will hang:
for example, if my local:
i changed the code of `DONOT_MODIFY_HANDLERS` to `True` and forced the `StandardTaskRunner` to use `_start_by_exec`.
```
airflow tasks run example_bash_operator also_run_this scheduled__2022-05-05T00:00:00+00:00 --job-id 272 --local --subdir /Users/ping_zhang/airlab/repos/airflow-internal-1.10.4/airflow/example_dags/example_bash_operator.py -f
```
it stuck without making any progress:

--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] pingzh closed issue #23540: tasks log is not correctly captured
Posted by GitBox <gi...@apache.org>.
pingzh closed issue #23540: tasks log is not correctly captured
URL: https://github.com/apache/airflow/issues/23540
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] pingzh commented on issue #23540: tasks log is not correctly captured
Posted by GitBox <gi...@apache.org>.
pingzh commented on issue #23540:
URL: https://github.com/apache/airflow/issues/23540#issuecomment-1129520603
fixed in https://github.com/apache/airflow/pull/23684
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] pingzh commented on issue #23540: tasks log is not correctly captured
Posted by GitBox <gi...@apache.org>.
pingzh commented on issue #23540:
URL: https://github.com/apache/airflow/issues/23540#issuecomment-1125391084
found the root cause. working on a fix.
however, there is another issue that blocks me https://github.com/apache/airflow/issues/23679
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org