Bug 1281821 - Docs: Correct Pulse environment variable references (#4097)

To account for the changes in #3948.
This commit is contained in:
Ed Morley 2018-10-04 12:08:04 +01:00 коммит произвёл GitHub
Родитель 2aa0f9e405
Коммит 55cf146ef1
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -110,7 +110,8 @@ push_sources = [
```
#### Jobs
Job Exchanges and Projects can be configured in the environment like so:
Job Exchanges and Projects are defined in ``job_sources``, however can
also be configured in the environment like so:
``PULSE_JOB_SOURCES`` defines a list of exchanges with projects.
```bash
@ -146,7 +147,7 @@ celery -A treeherder worker -B -Q pushlog,store_pulse_jobs,store_pulse_resultset
* The ``store_pulse_resultsets`` queue will ingest all the pushes from the exchanges
specified in ``push_sources``. This can be Mercurial and Github
* The ``store_pulse_jobs`` queue will ingest all the jobs from the exchanges
specified in ``PULSE_JOB_EXCHANGES``.
specified in ``job_sources`` (or ``PULSE_JOB_SOURCES``).
```eval_rst
.. note:: Any job that comes from **Pulse** that does not have an associated push will be skipped.

Просмотреть файл

@ -7,8 +7,8 @@ env = environ.Env()
def build_connection():
"""Build a Kombu Broker connection to Mozilla Pulse."""
# Used to specify the PulseGuardian account that will be used to create
# ingestion queues for the exchanges specified in ``PULSE_SOURCE_EXCHANGES``.
# Used to specify the PulseGuardian account that will be used to create ingestion
# queues for the exchanges specified in treeherder/services/pulse/sources.py.
# See https://pulse.mozilla.org/whats_pulse for more info.
# Example: "amqp://myuserid:mypassword@pulse.mozilla.org:5672/?ssl=1"
pulse_url = env.url("PULSE_URL")