From 126a18fac574fc4186b5cf04bde9640c26a2d5b4 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Thu, 9 Feb 2023 19:12:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E6=B8=85=E7=90=86?= =?UTF-8?q?=E5=BF=83=E8=B7=B3=E8=B6=85=E6=97=B6=E8=8A=82=E7=82=B9=E5=91=BD?= =?UTF-8?q?=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/Cluster/CleanOffline.php | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 app/Console/Commands/Cluster/CleanOffline.php diff --git a/app/Console/Commands/Cluster/CleanOffline.php b/app/Console/Commands/Cluster/CleanOffline.php new file mode 100644 index 0000000..54d46c2 --- /dev/null +++ b/app/Console/Commands/Cluster/CleanOffline.php @@ -0,0 +1,44 @@ + 30) { + $this->info("节点 {$node['id']} 已离线,将被清理。"); + ClusterSupport::removeNode($node['id']); + } + } + + return CommandAlias::SUCCESS; + } +}