Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

" got Future <Future pending> attached to a different loop " Error #67

Open
qivhou opened this issue Dec 1, 2022 · 0 comments
Open

Comments

@qivhou
Copy link

qivhou commented Dec 1, 2022

Describe the bug
A clear and concise description of what the bug is.
Once using scripts/run to start app, PYTHONPATH=app venv/bin/faust -A app worker --web-port=6066 actually executed, I'll get following error

RuntimeError: Task <Task pending name='Task-42' coro=<Event.wait() running at /root/miniconda3/envs/faust/lib/python3.8/asyncio/locks.py:309> cb=[_wait.<locals>._on_completion() at /root/miniconda3/envs/faust/lib/python3.8/asyncio/tasks.py:518]> got Future <Future pending> attached to a different loop

But if I use the local faust to run PYTHONPATH=app faust -A app worker --web-port=6066, everything is OK

I found this issue when I build my Docker Image, it happened in Python3.7 and Python3.8

seems it's related with asyncio, but I only found some clues on https://faust.readthedocs.io/en/latest/userguide/testing.html

Any idea on it ?
Expected behavior
A clear and concise description of what you expected to happen.

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant