Why does this Python asyncio task run on wrong loop?

Why does this Python asyncio task run on wrong loop in a multi-loop app. The Python code creates a task from a thread without passing the loop. In Python services this schedules on the wrong event loop.

#whatswrongwiththispythoncode #pythonbug #pythonproductionbug #pythondebugging #pythonbackend #pythoncodereview #pythonmistake #pythonbestpractices #pythonreliability #pythonincident #pythonapi ...

https://www.youtube.com/watch?v=1_tED3YnL-8

Why does this Python asyncio task run on wrong loop? #whatswrongwiththispythoncode

YouTube