国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

RedisQueue 異常無法捕捉?

JackDx

問題描述

這里詳細描述問題

程序代碼

下面放在外面無法捕獲,直接顯示報錯信息了

try {
    $config = \config('cache.stores.redis');
    $client = new Client($config['type'] . '://' . $config['host'] . ':' . $config['port'], ['auth' => $config['password']]);
    // 訂閱
    $client->subscribe('video', function ($data) {
    event('videoClip', $data);
    });
} catch (\Throwable $e) {
    log_error($e, '【視頻剪輯定時任務】【videoClip】', 'command_video');
}

下面放在里面正??梢圆东@并且寫入日記了

$config = \config('cache.stores.redis');
$client = new Client($config['type'] . '://' . $config['host'] . ':' . $config['port'], ['auth' => $config['password']]);
// 訂閱
$client->subscribe('video', function ($data) {
    try {
        event('videoClip', $data);
    } catch (\Throwable $e) {
        log_error($e, '【視頻剪輯定時任務】【videoClip】', 'command_video');
    }
});

操作系統(tǒng)及workerman/webman等框架組件具體版本

window10
workerman和Workerman\RedisQueue都是最新版

744 1 0
1個回答

walkor 打賞

第一段代碼在運行完try catch的時候還沒執(zhí)行video的回調,不會捕捉video回調里的異常

  • JackDx 2023-12-27

    了解,感謝老大的回復?。。。?/p>

年代過于久遠,無法發(fā)表回答
??