locking
flavor.locking
¶
TODO: Add module docstring.
Classes¶
LockManager
¶
Manages file-based locks for concurrent operations.
Source code in flavor/locking.py
Functions¶
cleanup_all
¶
lock
¶
Acquire a named lock.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Lock name |
required |
timeout
|
float
|
Maximum time to wait for lock |
30.0
|
Yields:
| Type | Description |
|---|---|
Path
|
Lock file path |
Raises:
| Type | Description |
|---|---|
LockError
|
When unable to acquire lock |