try django-q
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 3s

This commit is contained in:
pierre.geeraert
2026-09-09 15:18:00 +01:00
parent bc9e331c68
commit a00baa490f
3 changed files with 12 additions and 3 deletions
+9
View File
@@ -53,6 +53,7 @@ INSTALLED_APPS = [
'apps.streaming.apps.StreamingConfig',
'import_export',
'djangoql',
'django_q',
]
MIDDLEWARE = [
@@ -251,3 +252,11 @@ PROXIES = {
"http" : PROXY_URL,
"https" : PROXY_URL
}
Q_CLUSTER = {
"name": "django_kube",
"timeout": 60, # kill a task after 60s
"retry": 120, # must be > timeout, leave headroom
"max_attempts": 3, # otherwise a poison task retries forever
"ack_failures": True, # don't requeue tasks that raised
# ... your broker settings
}