Queue

class uwsgiconf.options.queue.Queue(*args, **kwargs)

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

enable(size, *, block_size=None, store=None, store_sync_interval=None)

Enables shared queue of the given size.

Parameters:
  • size (int) – Queue size.
  • block_size (int) – Block size in bytes. Default: 8 KiB.
  • store (str) – Persist the queue into file.
  • store_sync_interval (int) – Store sync interval in master cycles (usually seconds).