From ff15f1375bb4259adca9611d2f319432c02daa10 Mon Sep 17 00:00:00 2001 From: Babacar TALL Date: Tue, 5 Jul 2016 15:30:01 +0200 Subject: [PATCH] Add an example on the usage of spooler-external. Thx @ultrabug. --- Spooler.rst | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Spooler.rst b/Spooler.rst index 50bbc69c..540c9edd 100644 --- a/Spooler.rst +++ b/Spooler.rst @@ -176,6 +176,23 @@ To add an external spooler directory use the ``--spooler-external `` The spooler locking subsystem will avoid any messes that you might think could occur. +.. code-block:: ini + + [uwsgi] + spooler-external = /var/spool/uwsgi/external + ... + +.. code-block:: py + + # python + import uwsgi + uwsgi.spool({'foo': 'bar', 'spooler': '/var/spool/uwsgi/external'}) + # or + uwsgi.spool(foo='bar', spooler='/var/spool/uwsgi/external') + # for python3 use bytes instead of strings !!! + + + Networked spoolers ------------------