语法提示
This commit is contained in:
parent
d14318e6c7
commit
dfd016e77b
@ -20,6 +20,8 @@ public function handle(): void
|
||||
{
|
||||
// 扫描出错的主机
|
||||
(new Host)->whereIn('status', ['error', 'pending', 'unavailable'])->with('module')->chunk(100, function ($hosts) {
|
||||
/* @var Host $host */
|
||||
|
||||
foreach ($hosts as $host) {
|
||||
// 忽略维护中的模块
|
||||
if ($host->module->status !== 'up') {
|
||||
|
Loading…
Reference in New Issue
Block a user