This commit is contained in:
as2252258@163.com
2021-04-16 00:22:26 +08:00
parent e9243de9c1
commit de6e01b058
4 changed files with 273 additions and 275 deletions
+2 -2
View File
@@ -67,8 +67,8 @@ class Zookeeper extends Process
{
try {
$params['action'] = 'crontab';
$params['handler'] = $redis->get('crontab:' . $value);
$redis->del('crontab:' . $value);
$params['handler'] = swoole_unserialize($redis->get('crontab:' . $value));
$result = $server->sendMessage($params, $workerId = random_int(0, $setting - 1));
var_dump('send crontab to ' . $workerId . ' ' . intval($result));