GeoIntel release gates / Compile, test, contracts and builds (push) Successful in 1m49s
GeoIntel release gates / Python and npm vulnerability policy (push) Successful in 21s
GeoIntel release gates / Production AI image, SBOM and container scan (push) Successful in 5m39s
GeoIntel release gates / Deploy exact gated revision to Unraid (push) Failing after 58m43s
19 lines
370 B
Python
19 lines
370 B
Python
from __future__ import annotations
|
|
|
|
from contextvars import ContextVar, Token
|
|
|
|
|
|
_request_id: ContextVar[str] = ContextVar("geointel_request_id", default="-")
|
|
|
|
|
|
def get_request_id() -> str:
|
|
return _request_id.get()
|
|
|
|
|
|
def set_request_id(value: str) -> Token:
|
|
return _request_id.set(value)
|
|
|
|
|
|
def reset_request_id(token: Token) -> None:
|
|
_request_id.reset(token)
|