hyperion.adapters.queue.filesystem¶
hyperion.adapters.queue.filesystem
¶
File-backed :class:Queue adapter (lite -- stdlib only).
FileQueue
¶
Bases: Queue
File-based message queue.
If the queue is exclusive and it is entered multiple times, a RuntimeError will be raised.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
queue_path
|
Path
|
The path to the queue file. |
required |
overwrite
|
bool
|
Whether to overwrite the queue file if it exists. Defaults to False. |
False
|
exclusive
|
bool
|
Whether to use exclusive access to the queue file. Defaults to False. |
False
|