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:
   
   
![image](https://user-images.githubusercontent.com/8662365/167502196-441b5229-5377-450f-a900-578c6dc1982e.png)
   


-- 
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]

Reply via email to