Skip to content

Commit

Permalink
♻️ skip missing correlation ids
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Runde <[email protected]>
  • Loading branch information
joerunde authored and dtrifiro committed Jan 16, 2025
1 parent 85d78e5 commit cddab58
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/vllm_tgis_adapter/tgis_utils/logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@
_REQUEST_ID_TO_CORRELATION_ID = cachetools.TTLCache(maxsize=2048, ttl=600)


def set_correlation_id(request_id: str, correlation_id: str) -> None:
_REQUEST_ID_TO_CORRELATION_ID[request_id] = correlation_id
def set_correlation_id(request_id: str, correlation_id: str | None) -> None:
if correlation_id is not None:
_REQUEST_ID_TO_CORRELATION_ID[request_id] = correlation_id


def get_correlation_id(request_id: str) -> str | None:
Expand Down

0 comments on commit cddab58

Please sign in to comment.