mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix(redis): route the per-TTL pipeline write timeout log through the shared throttle
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
53c8a82a31
commit
c4354c248a
2 changed files with 9 additions and 2 deletions
|
|
@ -1231,8 +1231,11 @@ class RedisCache(BaseCache):
|
|||
end_time=time.time(),
|
||||
)
|
||||
)
|
||||
verbose_logger.error(
|
||||
"LiteLLM Redis Caching: async_set_cache_pipeline_with_ttls() - Got exception from REDIS %s", str(e)
|
||||
log_redis_failure(
|
||||
verbose_logger,
|
||||
logging.ERROR,
|
||||
"LiteLLM Redis Caching: async_set_cache_pipeline_with_ttls() - Got exception from REDIS",
|
||||
e,
|
||||
)
|
||||
_record_swallowed_redis_failure(self._circuit_breaker, e)
|
||||
|
||||
|
|
|
|||
|
|
@ -1260,6 +1260,10 @@ def test_timeouts_during_a_blip_log_once_per_interval_not_once_per_call(sync_bat
|
|||
"call_method",
|
||||
[
|
||||
pytest.param(lambda c: c.async_set_cache_pipeline([("lit7520", "v")]), id="async_set_cache_pipeline"),
|
||||
pytest.param(
|
||||
lambda c: c.async_set_cache_pipeline_with_ttls([("lit7520", "v", 60.0)]),
|
||||
id="async_set_cache_pipeline_with_ttls",
|
||||
),
|
||||
pytest.param(lambda c: c.async_set_cache_sadd("lit7520", ["v"], ttl=None), id="async_set_cache_sadd"),
|
||||
pytest.param(lambda c: c.async_increment("lit7520", 1.0), id="async_increment"),
|
||||
pytest.param(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue