Skip to main content

lock_release_stale

Function lock_release_stale 

Source
pub async fn lock_release_stale(
    lock_id: LockId,
    registry: State<'_, LockRegistryHandle>,
) -> Result<(), AppError>
Expand description

Manually release a specific lock by ID.

This is a last-resort override (e.g. to unstick a crashed operation). The caller is responsible for understanding the consequences.

Returns AppError::NotFound if the lock does not exist.