---
title: "lock or stop · RUAL Documentation"
description: "Locks or stops the flow if already locked."
canonical: https://docs.rual.nl/block-types/locking/function_claim_lock
language: en
---

# lock or stop

This block is part of the [`locking`](https://docs.rual.nl/block-types/locking) group and was last modified in core [`v12.0.4`](https://docs.rual.nl/core-versions/120004).

Locks or stops the flow if already locked.

- flow `flow`

- key required `value`

- expiry (sec.) required `number` Expiry in seconds to claim this lock.

- flow `flow`

- failed `execute_function`

### Version history

Introduced in [`v12.0.4`](https://docs.rual.nl/core-versions/120004).

Deprecated since [`v12.0.4`](https://docs.rual.nl/core-versions/120004).
