Add AI insights feature
This commit is contained in:
@@ -137,6 +137,9 @@ class ForecastingService(StandardFastAPIService):
|
||||
else:
|
||||
self.logger.error("Event publisher not initialized, alert service unavailable")
|
||||
|
||||
# Store the event publisher in app state for internal API access
|
||||
app.state.event_publisher = self.event_publisher
|
||||
|
||||
|
||||
async def on_shutdown(self, app: FastAPI):
|
||||
"""Custom shutdown logic for forecasting service"""
|
||||
|
||||
Reference in New Issue
Block a user