skip to Main Content

Nodejs redis method BLPOP blocks the event-loop

I use the library node-redis: https://github.com/NodeRedis/node-redis let client = redis.createClient(); let blpopAsync = util.promisify(client.blpop).bind(client); let rpushAsync = util.promisify(client.rpush).bind(client); async function consume() { let data = await blpopAsync('queue', 0); // the program is blocked at here } async function otherLongRunningTasks() {…

VIEW QUESTION

No module named redis on Pycharm

I'm running a python programm on Pycharm and I have this error : C:UsersHPAnaconda3python.exe C:/Users/HP/PycharmProjects/3_redis/twitter_filter.py Traceback (most recent call last): File "C:/Users/HP/PycharmProjects/3_redis/twitter_filter.py", line 4, in <module> from tweet_store import TweetStore File "C:UsersHPPycharmProjects3_redistweet_store.py", line 2, in <module> import redis ModuleNotFoundError: No…

VIEW QUESTION
Back To Top
Search