INNER CODE UNIT · Python
reset_data_source
airweave-ai/error-monitoring-agent · backend/sources/__init__.py:118
def reset_data_source():
"""Reset cached data source (for testing or config changes)."""
global _data_source
_data_source = None
# Export all
__all__ = [
"DataSource",
"RawError",
"SampleDataSource",
"AzureLogAnalyticsSource",
"SentrySource",
"get_data_source",
"get_available_sources",
"get_cached_data_source",
"reset_data_source",
"SOURCES",