mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-05 06:36:19 +01:00
Merge branch 'v5.x' of gitlab.com:allianceauth/allianceauth into v5.x
This commit is contained in:
@@ -35,6 +35,13 @@ app.conf.ONCE = {
|
||||
'settings': {}
|
||||
}
|
||||
|
||||
app.conf.task_routes = {
|
||||
# Some AA Services are sensitive to threaded tasks
|
||||
# Utilize a single threaded worker to process these tasks
|
||||
# Discord: Multithreads can cause duplicate role creation.
|
||||
"discord.*": {"queue": "services"},
|
||||
}
|
||||
|
||||
# Load task modules from all registered Django app configs.
|
||||
app.autodiscover_tasks(lambda: settings.INSTALLED_APPS)
|
||||
|
||||
|
||||
@@ -103,6 +103,10 @@ services:
|
||||
deploy:
|
||||
replicas: 2
|
||||
|
||||
allianceauth_worker_services:
|
||||
<<: [*allianceauth-base, *allianceauth-health-checks]
|
||||
entrypoint: ["celery", "-A", "myauth", "worker", "--pool=threads", "--concurrency=1", "-Q" , "services" , "-n", "worker_services_%n"]
|
||||
|
||||
grafana:
|
||||
image: grafana/grafana-oss:latest
|
||||
restart: always
|
||||
|
||||
Reference in New Issue
Block a user