Skip to main content

get_pod_id

Function get_pod_id 

Source
pub fn get_pod_id() -> String
Expand description

Get a stable pod identifier for distributed locking.

Resolution order: HOSTNAME (K8s default) → POD_NAME (custom override) → local-{pid} for local dev.