Queue local website activation from Apache previews
This commit is contained in:
1 parent
7f706c39b5
commit
6523c166a8
12 files changed
+459
-3
No files matched your search
@@ -106,6 +106,7 @@ CELERY_BROKER_URL = os.environ.get(
|
||||
CELERY_BROKER_TRANSPORT_OPTIONS = {"confirm_publish": True}
|
||||
CELERY_TASK_DEFAULT_QUEUE = "coulobre"
|
||||
CELERY_TASK_IGNORE_RESULT = True
|
||||
LOCAL_WEB_ACTIVATION = os.environ.get("COULOBRE_LOCAL_WEB_ACTIVATION") == "1"
|
||||
CELERY_BEAT_SCHEDULE = {
|
||||
"dispatch-web-provisioning-plans": {
|
||||
"task": "coulobre.hosting.tasks.dispatch_web_plans",
|
||||
@@ -113,3 +114,9 @@ CELERY_BEAT_SCHEDULE = {
|
||||
"options": {"expires": 5.0},
|
||||
},
|
||||
}
|
||||
if LOCAL_WEB_ACTIVATION:
|
||||
CELERY_BEAT_SCHEDULE["dispatch-web-activations"] = {
|
||||
"task": "coulobre.hosting.tasks.dispatch_web_activations",
|
||||
"schedule": 5.0,
|
||||
"options": {"expires": 4.0},
|
||||
}
|
||||
Reference in new issue
Block a user