This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import redis
|
#import redis
|
||||||
from django.http import HttpResponse
|
from django.http import HttpResponse
|
||||||
from django.http import HttpResponseRedirect
|
from django.http import HttpResponseRedirect
|
||||||
from django.shortcuts import render
|
from django.shortcuts import render
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ INSTALLED_APPS = [
|
|||||||
'apps.streaming.apps.StreamingConfig',
|
'apps.streaming.apps.StreamingConfig',
|
||||||
'import_export',
|
'import_export',
|
||||||
'djangoql',
|
'djangoql',
|
||||||
|
'django_q',
|
||||||
]
|
]
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
@@ -251,3 +252,11 @@ PROXIES = {
|
|||||||
"http" : PROXY_URL,
|
"http" : PROXY_URL,
|
||||||
"https" : 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
|
||||||
|
}
|
||||||
+2
-2
@@ -1,6 +1,5 @@
|
|||||||
django
|
django
|
||||||
psycopg2
|
psycopg2
|
||||||
#xrequests
|
|
||||||
kubernetes
|
kubernetes
|
||||||
ruamel.yaml
|
ruamel.yaml
|
||||||
pyyaml
|
pyyaml
|
||||||
@@ -8,7 +7,7 @@ django-bootstrap-v5
|
|||||||
jinja2
|
jinja2
|
||||||
watchdog
|
watchdog
|
||||||
celery
|
celery
|
||||||
redis
|
#redis
|
||||||
lxml
|
lxml
|
||||||
requests
|
requests
|
||||||
django-hosts
|
django-hosts
|
||||||
@@ -17,3 +16,4 @@ bitwarden_sdk
|
|||||||
xmltodict
|
xmltodict
|
||||||
whitenoise
|
whitenoise
|
||||||
djangoql
|
djangoql
|
||||||
|
django-q2
|
||||||
|
|||||||
Reference in New Issue
Block a user