mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-12 08:42:18 +00:00
fix(cron): use POSIX ERE boundary in pgrep cleanup pattern
Co-authored-by: Yassin Kortam <yassin@berri.ai>
This commit is contained in:
parent
e59202e438
commit
7dcb7fa631
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ cleanup() {
|
|||
fi
|
||||
# Belt-and-braces: any python or uv talking to ${PROXY_PORT} that
|
||||
# survived the SIGTERM gets SIGKILL'd by name.
|
||||
pgrep -f "litellm.*--port[ =]?${PROXY_PORT}\b" 2>/dev/null \
|
||||
pgrep -f "litellm.*--port[ =]?${PROXY_PORT}([^0-9]|$)" 2>/dev/null \
|
||||
| xargs -r kill -KILL 2>/dev/null || true
|
||||
pgrep -f "${WORKTREE}/.uv-bin/uv.*run litellm" 2>/dev/null \
|
||||
| xargs -r kill -KILL 2>/dev/null || true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue