This commit is contained in:
as2252258@163.com
2021-04-16 01:07:19 +08:00
parent e6cf428a2e
commit 175a5d5ec9
2 changed files with 5 additions and 5 deletions
+4 -1
View File
@@ -64,7 +64,10 @@ class Zookeeper extends Process
{
try {
$params['action'] = 'crontab';
$params['handler'] = swoole_unserialize($redis->get('crontab:' . $value));
if (($handler = $redis->exists('crontab:' . $value)) === false) {
return;
}
$params['handler'] = swoole_unserialize($handler);
$result = $server->sendMessage($params, $workerId = random_int(0, $setting - 1));