md-systems/redis

Fatal error when redis is loading a dataset

rodrigoaguilera opened this issue · 0 comments

I am restarting redis as part of a deploy and the dataset is around 800MB.
If I try to run a drush command just after the redis restart I get the following:

Fatal error: Uncaught RedisException: LOADING Redis 
is loading the dataset in memory in /var/www/html/web/modules/contrib/redis/src/Cache/PhpRedis.php:99

Is there a way to handle the exception more gracefully? Like waiting for the redis server to be ready

I saw this similar issue but it is closed without any resolution
#10