pyTelegramBotAPI icon indicating copy to clipboard operation
pyTelegramBotAPI copied to clipboard

Concurrency error related to storages

Open coder2020official opened this issue 3 years ago • 2 comments

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.

  1. What version of pyTelegramBotAPI are you using? 4.5.0
  2. What OS are you using? MacOS
  3. What version of python are you using?
  4. 3.9.6

coder2020official avatar May 04 '22 11:05 coder2020official

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.

0x54726F79 avatar May 04 '22 12:05 0x54726F79

Hello. Yes, I am going to test threading/asyncio locks for sync and async.

coder2020official avatar May 04 '22 14:05 coder2020official

@coder2020official close?

Badiboy avatar Aug 23 '22 16:08 Badiboy

I wasn't able to reproduce it, let's close it for now

coder2020official avatar Aug 23 '22 16:08 coder2020official