service = $service; } public function run(Data $data): void { $targetId = $data->getTargetId(); if (!$targetId) { throw new Error("No target."); } try { $this->service->fetch($targetId); } catch (Throwable $e) { throw new Error( 'Job CheckEmailAccounts ' . $targetId . ': [' . $e->getCode() . '] ' . $e->getMessage() . ' ' . $e->getFile() . ':' . $e->getLine() ); } } }