import(); } catch (Throwable $e) { $this->error('BEIS import failed: '.$e->getMessage()); return self::FAILURE; } $this->info(sprintf( 'Imported %d rows from %s — latest date: %s.', $result['parsed'], $result['csv_url'], $result['latest_date'], )); $this->info('Forecast cache flushed; next API hit will retrain on the new row.'); return self::SUCCESS; } }