diff --git a/gregsite/settings/base.py b/gregsite/settings/base.py index d916a29e4acb20fae15b24d459e2e44877831ec9..3f5b52896fcc12748378cd6e182655e8319eb7fe 100644 --- a/gregsite/settings/base.py +++ b/gregsite/settings/base.py @@ -304,3 +304,15 @@ ORGREG_EXTRA_IDS = [] # Acronyms to be imported as identifiers from orgreg. List of acronym values, supported ones are: nob, nno, eng # Example list: ["nob"] ORGREG_ACRONYMS = [] + +# Settings related to Django-q used for scheduling tasks in the future. +# We use it to queue creation of Notification objects related to roles when start/end dates are in the future +Q_CLUSTER = { + "name": "greg", + "workers": 4, + "timeout": 90, + "retry": 120, + "queue_limit": 50, + "bulk": 10, + "orm": "default", +} diff --git a/gregsite/settings/dev.py b/gregsite/settings/dev.py index 239f11bb6d29c023450aaaf4f2368706049d34aa..fdc4fb71f9cdb2e5567ad57392be840d2d03bb14 100644 --- a/gregsite/settings/dev.py +++ b/gregsite/settings/dev.py @@ -30,16 +30,12 @@ CEREBRUM_CLIENT = { } CEREBRUM_HIERARCHICAL_ACCESS = True -Q_CLUSTER = { - "name": "greg", - "workers": 4, - "timeout": 90, - "retry": 120, - "queue_limit": 50, - "bulk": 10, - "orm": "default", - "sync": True, -} + +Q_CLUSTER.update( + { + "sync": True, + } +) AUTHENTICATION_BACKENDS = [ "gregui.authentication.auth_backends.DevBackend", # Fake dev backend