From 68509daeafa025e09aa92182a4fa05884f4447f9 Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Sat, 12 Sep 2026 16:33:43 -0700 Subject: [PATCH] refactor(logging): keep the timeout summary window a plain constant Drop the unrequested env override on LOGGING_WORKER_TIMEOUT_SUMMARY_WINDOW_SECONDS. The constructor still accepts a value for tests, so runtime behavior is unchanged. --- litellm/constants.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/litellm/constants.py b/litellm/constants.py index 1186d590601..be5a4e4b076 100644 --- a/litellm/constants.py +++ b/litellm/constants.py @@ -571,9 +571,7 @@ ANTHROPIC_MESSAGES_MAX_DETACHED_STREAM_DRAINS: Final = int( LOGGING_WORKER_CONCURRENCY: Final = int(os.getenv("LOGGING_WORKER_CONCURRENCY", 100)) # Must be above 0 LOGGING_WORKER_MAX_QUEUE_SIZE: Final = int(os.getenv("LOGGING_WORKER_MAX_QUEUE_SIZE", 50_000)) LOGGING_WORKER_MAX_TIME_PER_COROUTINE: Final = float(os.getenv("LOGGING_WORKER_MAX_TIME_PER_COROUTINE", 20.0)) -LOGGING_WORKER_TIMEOUT_SUMMARY_WINDOW_SECONDS: Final = float( - os.getenv("LOGGING_WORKER_TIMEOUT_SUMMARY_WINDOW_SECONDS", "5.0") -) +LOGGING_WORKER_TIMEOUT_SUMMARY_WINDOW_SECONDS: Final = 5.0 LOGGING_WORKER_CLEAR_PERCENTAGE: Final = int( os.getenv("LOGGING_WORKER_CLEAR_PERCENTAGE", 50) ) # Percentage of queue to clear (default: 50%)