- Adding Prometheus and grafana services in development
- Adding Prometheus metrics to the business events - Ensure asynchronous behaviour of crewai specialists. - Adapt Business events to working in mixed synchronous / asynchronous contexts - Extend business events with specialist information - Started adding a grafana dashboard (TBC)
This commit is contained in:
6
common/utils/cache/base.py
vendored
6
common/utils/cache/base.py
vendored
@@ -59,7 +59,7 @@ class CacheHandler(Generic[T]):
|
||||
Returns:
|
||||
A serializable format of the instance.
|
||||
"""
|
||||
pass
|
||||
raise NotImplementedError
|
||||
|
||||
@abstractmethod
|
||||
def _from_cache_data(self, data: Any, **kwargs) -> T:
|
||||
@@ -73,7 +73,7 @@ class CacheHandler(Generic[T]):
|
||||
Returns:
|
||||
The data in its usable format.
|
||||
"""
|
||||
pass
|
||||
raise NotImplementedError
|
||||
|
||||
@abstractmethod
|
||||
def _should_cache(self, value: T) -> bool:
|
||||
@@ -86,7 +86,7 @@ class CacheHandler(Generic[T]):
|
||||
Returns:
|
||||
True if the value should be cached, False otherwise.
|
||||
"""
|
||||
pass
|
||||
raise NotImplementedError
|
||||
|
||||
def configure_keys(self, *components: str):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user