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