Fixed #107 and fixed #125 -- Periodic cleanup tasks

This commit is contained in:
Raphael Michel
2016-03-26 19:10:31 +01:00
parent 6e60332948
commit 1011893543
8 changed files with 59 additions and 2 deletions
+10 -1
View File
@@ -9,6 +9,7 @@ To use pretix, the most minimal setup consists of:
* **pretix** and the python packages it depends on
* An **WSGI application server** (we recommend gunicorn)
* A periodic task runner, e.g. ``cron``
You get those two bundled in the ``pretix/standalone`` docker image.
@@ -39,4 +40,12 @@ If you want to use one of the payment providers shipping with pretix, you should
``pip install -r requirements/<plugin>.txt`` where ``<plugin>`` is one of ``banktransfer``, ``paypal`` or ``stripe``.
We will provide a step-by-step tutorial with the first stable release, but all configuration
already :ref:`is documented <config>`.
already :ref:`is documented <config>`.
Set up a cronjob
----------------
You need to set up a cronjob that runs the management command ``runperiodic``. The exact interval is not important
but should be something between every minute and every hour. You could for example configure cron like this::
15,45 * * * * python3 /path/to/pretix/manage.py runperiodic