Skip to content

Queue

Classes

Queue

Queue(*args, **kwargs)

OptionsGroup

Queue.

At the low level it is a simple block-based shared array, with two optional counters, one for stack-style, LIFO usage, the other one for FIFO.

http://uwsgi-docs.readthedocs.io/en/latest/Queue.html


name

.name: str = ''

Name to represent the group.


plugin

.plugin: bool | str = False

Indication this option group belongs to a plugin.


enable

1
2
3
4
5
6
.enable(
    size: int,  # (1)!
    block_size: int | None = None,  # (2)!
    store: str | None = None,  # (3)!
    store_sync_interval: int | None = None,  # (4)!
)
  1. Queue size.

  2. Block size in bytes. Default: 8 KiB.

  3. Persist the queue into file.

  4. Store sync interval in master cycles (usually seconds).

Enables shared queue of the given size.