I'm getting the following warnings in my python 3.6 code using:
import os
os.environ['PYTHONASYNCIODEBUG'] = '1'
Executing <Handle <TaskWakeupMethWrapper object at 0x7fa8653dca08>(<Future finis...events.py:295>) created at /opt/rh/rh-python36/root/usr/lib64/python3.6/asyncio/tasks.py:390> took 5.012 seconds
Executing <Handle <TaskWakeupMethWrapper object at 0x7fa8653dcc48>(<Future finis...events.py:295>) created at /opt/rh/rh-python36/root/usr/lib64/python3.6/asyncio/tasks.py:390> took 9.941 seconds
Executing <Handle <TaskWakeupMethWrapper object at 0x7fa8653dca08>(<Future finis...events.py:295>) created at /opt/rh/rh-python36/root/usr/lib64/python3.6/asyncio/tasks.py:390> took 5.038 seconds
So this is useful because I know things are being slow - but I'm having trouble figuring out if there is a way to get a better stack trace so I can actually track down what is happening.
Is there a way to get more of a stack trace out of this - I assume its triggering the AbstractEventLoop.slow_callback_duration as described here: https://docs.python.org/3.6/library/asyncio-dev.html
Thanks