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

webman監(jiān)聽(tīng)MNS消息隊(duì)列,無(wú)法實(shí)時(shí)消費(fèi),每次消費(fèi)中間間隔不定的時(shí)間

adminadmin

webman監(jiān)聽(tīng)MNS消息隊(duì)列,無(wú)法實(shí)時(shí)消費(fèi),每次消費(fèi)中間間隔不定的時(shí)間

數(shù)據(jù)庫(kù)的執(zhí)行幾乎不耗費(fèi)時(shí)間,不是數(shù)據(jù)庫(kù)等待時(shí)間
請(qǐng)問(wèn)還可以從哪些方面去找問(wèn)題

也報(bào)這個(gè)錯(cuò)誤 worker[task:2630] exit with status 9

根據(jù)帖子http://wtbis.cn/q/8287進(jìn)行了修改,依然報(bào)錯(cuò)

首先開(kāi)自定義進(jìn)程


   public function onWorkerStart()
    {

        $endPoint = '1';
        $accessId = "2";
        $accessKey = "3";

         //隊(duì)列名稱
        $queueName = "buyorder-settle";
        $client = new Client($endPoint, $accessId, $accessKey);
        $queue = $client->getQueueRef($queueName);

        pcntl_signal(SIGINT, function () {
            Worker::stopAll();
        });

        while (true) {
            try {

               $t1_start=time();

               $res = $queue->receiveMessage(1);
                $receiptHandle = $res->getReceiptHandle();
                //接收消息
                $r = $res->getMessageBody();

                    $update_o = [
                        'buyorder_status' => "finish",
                    ];
                    $r1 = Db::name("buy_order")
                        ->where("buyorder_id", $r['order_id'])->update($update_o);

                    if ($r1) {
                          $delete_action = $queue->deleteMessage($receiptHandle);
                          $haoshi=time()-$t1_start;
                          print(date('Y-m-d H:i:s')."---完成--耗時(shí)".$haoshi."s"."\r\n");
                          pcntl_signal_dispatch();
                    }

            } catch (\Throwable $throwable) {

            }
        }

    }

MNS應(yīng)該如何填寫參數(shù)
截圖

為此你搜索到了哪些方案及不適用的原因

根據(jù)這個(gè)帖子改了還是不行
http://wtbis.cn/q/8287
http://wtbis.cn/q/9385

1241 0 0
0個(gè)回答

年代過(guò)于久遠(yuǎn),無(wú)法發(fā)表回答
??