pyTelegramBotAPI
pyTelegramBotAPI copied to clipboard
Concurrency error related to storages
Please answer these questions before submitting your issue. Thanks! Tested 3 different storages: Pickle, Redis, Memory - only asynchronous ones. Redis storage needs to be improved in order to support concurrency.
- What version of pyTelegramBotAPI are you using? 4.5.0
- What OS are you using? MacOS
- What version of python are you using?
- 3.9.6
As far as I know, all storage don't support multithreading, only async. You can inherit from storage class and add synchronization mechanisms such as mutexes.
Hello. Yes, I am going to test threading/asyncio locks for sync and async.
@coder2020official close?
I wasn't able to reproduce it, let's close it for now