From 484716c0e905520ae1675da63460bb4ab90788e6 Mon Sep 17 00:00:00 2001 From: Julian Rother Date: Sat, 8 Feb 2025 03:07:31 +0100 Subject: [PATCH] Fix warnings causing cronjob errors mails --- templates/mailman-web.py.j2 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/templates/mailman-web.py.j2 b/templates/mailman-web.py.j2 index 82e282b..011cfa6 100644 --- a/templates/mailman-web.py.j2 +++ b/templates/mailman-web.py.j2 @@ -250,3 +250,21 @@ SESSION_EXPIRE_SECONDS = {{ mailman.web.session_timeout }} HYPERKITTY_ENABLE_GRAVATAR = False HYPERKITTY_ALLOW_WEB_POSTING = False +# Fix warning: +# +# UserWarning: Retry and timeout are misconfigured. Set retry larger than timeout, +# failure to do so will cause the tasks to be retriggered before completion. +# See https://django-q.readthedocs.io/en/latest/configure.html#retry for details. + +Q_CLUSTER = { + 'retry': 360, + 'timeout': 300, + 'save_limit': 100, + 'orm': 'default', +} + +# Fix warning: +# +# Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'. + +DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'