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

RuntimeError: <asyncio.locks.Lock object at 0xffff72886f10 [unlocked, waiters:1]> is bound to a different event loop #182

Open
codilau opened this issue May 3, 2024 · 0 comments

Comments

@codilau
Copy link

codilau commented May 3, 2024

I seem to randomly get this every now and then.
Could it be related with 'get_for_queue' scheduling the same account for two different tasks?
The issue was not there before the last update

.../lib/python3.11/site-packages/twscrape/accounts_pool.py", line 285, in get_for_queue
return await self._get_and_lock(queue, q)
[...]
File "/usr/lib/python3.11/asyncio/mixins.py", line 20, in _get_loop
raise RuntimeError(f'{self!r} is bound to a different event loop')
RuntimeError: <asyncio.locks.Lock object at 0xffff72886f10 [unlocked, waiters:1]> is bound to a different event loop

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