Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hello I have cloned this repo, created venv with pyhton 3.9 and tried to run the above file, but it crashed... with the following error. Not always, but in 20-30% cases

`RuntimeError: Task <Task pending name='Task-3' coro=<process_data() running at /async-techniques-python-course/src/04-asyncio/producer_consumer/prod_async/async_program.py:40> cb=[_gather.._done_callback() at .pyenv/versions/3.9.13/lib/python3.9/asyncio/tasks.py:767]> got Future attached to a different loop
Task was destroyed but it is pending!
task: <Task pending name='Task-1' coro=<generate_data() running at /async-techniques-python-course/src/04-asyncio/producer_consumer/prod_async/async_program.py:34> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f4babcf3400>()]> cb=[_gather.._done_callback() at .pyenv/versions/3.9.13/lib/python3.9/asyncio/tasks.py:767]>
Task was destroyed but it is pending!
task: <Task pending name='Task-2' coro=<generate_data() running at /async-techniques-python-course/src/04-asyncio/producer_consumer/prod_async/async_program.py:34> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f4babcf33a0>()]> cb=[_gather.._done_callback() at .pyenv/versions/3.9.13/lib/python3.9/asyncio/tasks.py:767]>

Process finished with exit code 1`

Looks like there is a problem with how queues are arranged...

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.