This commit is contained in:
as2252258@163.com
2021-04-16 01:33:53 +08:00
parent 9b3673290c
commit 34a50a214d
+3 -1
View File
@@ -76,7 +76,9 @@ class Zookeeper extends Process
{
$redis = Snowflake::app()->getRedis();
if (!$redis->exists(Producer::CRONTAB_KEY)) {
logger()->addError('queue cache not found.');
var_dump('queue cache not found.');
} else {
var_dump('queue cache found.');
}
$range = $redis->zRangeByScore(Producer::CRONTAB_KEY, '0', (string)time());