From ba1a5f0e353468db4d3147ef1cdf6b93669c4419 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 16 Apr 2023 14:24:35 +0200 Subject: [PATCH] Docs: Note on periodic tasks in dev setup (#3228) It took a little bit of searching to figure out that in the dev environment, by default, celery tasks are run synchronously, but periodic tasks are not run at all. --- doc/development/setup.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/development/setup.rst b/doc/development/setup.rst index 8e9ca4784d..18448a60f1 100644 --- a/doc/development/setup.rst +++ b/doc/development/setup.rst @@ -150,6 +150,13 @@ Add this to your ``src/pretix.cfg``:: Then execute ``python -m smtpd -n -c DebuggingServer localhost:1025``. +Working with periodic tasks +^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Periodic tasks (like sendmail rules) are run when an external scheduler (like cron) +triggers the ``runperiodic`` command. + +To run periodic tasks, execute ``python manage.py runperiodic``. + Working with translations ^^^^^^^^^^^^^^^^^^^^^^^^^ If you want to translate new strings that are not yet known to the translation system,