Skip to content

Commit 27502cf

Browse files
committed
fix PROXY_BATCH_WRITE_AT
1 parent 2608d37 commit 27502cf

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

litellm/constants.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,9 +1050,7 @@
10501050
PROXY_BUDGET_RESCHEDULER_MAX_TIME = int(
10511051
os.getenv("PROXY_BUDGET_RESCHEDULER_MAX_TIME", 605)
10521052
)
1053-
# MEMORY LEAK FIX: Increased from 10s to 30s minimum to prevent memory issues with APScheduler
1054-
# Very frequent intervals (<30s) can cause memory leaks in APScheduler's internal functions
1055-
PROXY_BATCH_WRITE_AT = int(os.getenv("PROXY_BATCH_WRITE_AT", 30)) # in seconds, increased from 10
1053+
PROXY_BATCH_WRITE_AT = int(os.getenv("PROXY_BATCH_WRITE_AT", 10)) # in seconds, increased from 10
10561054

10571055
# APScheduler Configuration - MEMORY LEAK FIX
10581056
# These settings prevent memory leaks in APScheduler's normalize() and _apply_jitter() functions

0 commit comments

Comments
 (0)