host = $host; } /** * Execute the job. * * @return void */ public function handle(): void { if (! $this->host) { (new Host)->where('next_due_at', '<', now()) ->where('status', '!=', 'suspended') ->chunk(100, function ($hosts) { foreach ($hosts as $host) { dispatch(new self($host)); } }); } $this->host?->suspend(); } }