Commit b558ac0a authored by chenchuanwen's avatar chenchuanwen

bridgeReload

parent 73135845
......@@ -5,9 +5,10 @@
* Date: 2019/1/17 0017
* Time: 下午 2:29
*/
require APPLICATION_PATH . '/scripts/crontab/common.php';
error_reporting(E_ALL ^ E_NOTICE);
function callback($instance,$channelName,$message){
require APPLICATION_PATH . '/scripts/crontab/common.php';
error_reporting(E_ALL ^ E_NOTICE);
try{
$message=json_decode($message,true);
$callInstance=$message['className']::getInstance(\Our\DbNameConst::masterDBConnectName);
......@@ -28,10 +29,6 @@ function callback($instance,$channelName,$message){
}catch(Exception $ex){
echo $ex->getMessage();
}
pcntl_signal_dispatch();
if (Signal::get() == SIGHUP) {
Signal::reset();
}
}
$conf = \Yaf\Registry::get('config')->get('redis.database.params');
$redisPublishName=\Yaf\Registry::get('config')->get('redis.redisPublishName');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment