改名
This commit is contained in:
@@ -119,11 +119,7 @@ class Zookeeper extends Process
|
|||||||
private function loadCarobTask(Redis|\Redis $redis): array
|
private function loadCarobTask(Redis|\Redis $redis): array
|
||||||
{
|
{
|
||||||
$script = <<<SCRIPT
|
$script = <<<SCRIPT
|
||||||
local _two = redis.call('zRangeByScore', KEYS[1], '0', ARGV[1])
|
return {}
|
||||||
|
|
||||||
redis.call('ZREM', KEYS[1], unpack(_two))
|
|
||||||
|
|
||||||
return {_two}
|
|
||||||
SCRIPT;
|
SCRIPT;
|
||||||
$data = $redis->eval($script, [Producer::CRONTAB_KEY, (string)time()], 1);
|
$data = $redis->eval($script, [Producer::CRONTAB_KEY, (string)time()], 1);
|
||||||
var_dump($data);
|
var_dump($data);
|
||||||
|
|||||||
Reference in New Issue
Block a user