Skip to main content

renew_shared

Function renew_shared 

Source
pub fn renew_shared(
    resource_kind: AgentLeaseResourceKindV1,
    resource_ref: &str,
    owner_agent_id: &str,
    lease_ref: &str,
    duration_ms: u64,
) -> Result<AgentLeaseV1, AgentLeaseError>
Expand description

Renews an owned lease in the machine-wide registry without rotating its fencing token. Renewal must use the same store as acquisition, otherwise a lease held by another process could never be renewed.