mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-09 00:26:20 +01:00
Singlethread Services Worker
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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user