← 返回首页
chore: add DATATRACKER_BROKER_URL config option (#10785) · ietf-tools/datatracker@7f25c28 · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Commit 7f25c28

Browse files
chore: add DATATRACKER_BROKER_URL config option (#10785)
1 parent dd6334a commit 7f25c28

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

‎k8s/settings_local.py‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,18 @@ def _multiline_to_list(s):
155155
EMAIL_HOST = os.environ.get("DATATRACKER_EMAIL_HOST", "localhost")
156156
EMAIL_PORT = int(os.environ.get("DATATRACKER_EMAIL_PORT", "2025"))
157157

158+
_broker_url = os.environ.get("DATATRACKER_BROKER_URL", None)
158159
_celery_password = os.environ.get("CELERY_PASSWORD", None)
159-
if _celery_password is None:
160-
raise RuntimeError("CELERY_PASSWORD must be set")
161-
CELERY_BROKER_URL = "amqp://datatracker:{password}@{host}/{queue}".format(
162-
host=os.environ.get("RABBITMQ_HOSTNAME", "dt-rabbitmq"),
163-
password=_celery_password,
164-
queue=os.environ.get("RABBITMQ_QUEUE", "dt"),
165-
)
160+
if _broker_url is not None:
161+
CELERY_BROKER_URL = _broker_url
162+
elif _celery_password is not None:
163+
CELERY_BROKER_URL = "amqp://datatracker:{password}@{host}/{queue}".format(
164+
host=os.environ.get("RABBITMQ_HOSTNAME", "dt-rabbitmq"),
165+
password=_celery_password,
166+
queue=os.environ.get("RABBITMQ_QUEUE", "dt"),
167+
)
168+
else:
169+
raise RuntimeError("DATATRACKER_BROKER_URL or CELERY_PASSWORD must be set")
166170

167171
# mailarchive API key
168172
_mailing_list_archive_api_key = os.environ.get(

0 commit comments

Comments
 (0)

Footer

© 2026 GitHub, Inc.