memkernel_acquire_lease
Acquire an exclusive, time-limited lease on a file before editing to prevent conflicting changes; returns a fencing token or the current holder and lease expiry.
Instructions
Acquire an exclusive, time-limited lease on a file before editing it.
timeout_seconds is the lease TTL; renew it with memkernel_heartbeat_lease. Returns acquired=true and a fencing_token on success; on contention returns acquired=false with the current holder and how long until it expires.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| timeout_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||