public function closeQueue($queue_id)
{
if (!isset($this->idle_queues[$queue_id])) {
return;
}
Logger::debug("[MQ {$queue_id}] attempt to close");
// 队列末尾加入null,消息循环处理到null后任务队列结束
array_unshift($this->action_queues[$queue_id], null);
$this->next_action[] = $queue_id;
// $this->idle_queues[$queue_id][]=null;
}