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 2020/05/16 10:08:39 UTC

[GitHub] [airflow] zobnec commented on issue #8164: Monkey-patching may also silently lead to incorrect behaviour on Python 3.7

zobnec commented on issue #8164:
URL: https://github.com/apache/airflow/issues/8164#issuecomment-629621571


   This also happened to me.I use a celery worker start a dag and use gevent monkey path in dag code.I can run dag by python command, but with airflow celery worker it reports that  (NOT patched): ['urllib3.util...]; So I added gevent monkey path Code at the top of **dagbag.py**, Just like this and **solve** it:
   ```
   import gevent
   from gevent import monkey, pool
   
   monkey.patch_all()
   import hashlib
   import imp
   import importlib```


----------------------------------------------------------------
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:
users@infra.apache.org