setInterval(5 * 60); } protected function run($argument): void { try { $result = $this->fulfillmentService->runCycle(); if (empty($result['ok'])) { $this->logger->warning('Billing auto-fulfillment job reported an error', [ 'app' => 'chd_admin', 'status' => $result['status'] ?? '', 'message' => $result['message'] ?? '', ]); return; } if ((int)($result['errors'] ?? 0) > 0) { $this->logger->warning('Billing auto-fulfillment job completed with errors', [ 'app' => 'chd_admin', 'processed' => (int)($result['processed'] ?? 0), 'fulfilled' => (int)($result['fulfilled'] ?? 0), 'skipped' => (int)($result['skipped'] ?? 0), 'errors' => (int)($result['errors'] ?? 0), ]); } } catch (\Throwable $e) { $this->logger->warning('Billing auto-fulfillment job failed', [ 'app' => 'chd_admin', 'error' => $e->getMessage(), ]); } } }