modify
This commit is contained in:
@@ -88,9 +88,8 @@ class Zookeeper extends Process
|
||||
{
|
||||
$redis = Snowflake::app()->getRedis();
|
||||
|
||||
$startTime = time();
|
||||
$range = $redis->zRangeByScore(Producer::CRONTAB_KEY, '0', (string)time());
|
||||
|
||||
$range = $redis->zRangeByScore(Producer::CRONTAB_KEY, '0', (string)$startTime);
|
||||
$redis->zRem(Producer::CRONTAB_KEY, ...$range);
|
||||
|
||||
return [$range, $redis];
|
||||
|
||||
Reference in New Issue
Block a user