зеркало из https://github.com/mozilla/bedrock.git
27 строки
838 B
ReStructuredText
27 строки
838 B
ReStructuredText
|
.. This Source Code Form is subject to the terms of the Mozilla Public
|
||
|
.. License, v. 2.0. If a copy of the MPL was not distributed with this
|
||
|
.. file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||
|
|
||
|
.. _task-queue:
|
||
|
|
||
|
==========
|
||
|
Task queue
|
||
|
==========
|
||
|
|
||
|
As part of the 2024 Wagtail CMS work, we have added a task queue to process
|
||
|
longer-running jobs in the background.
|
||
|
|
||
|
The queue is supplied by ``django-rq``, which sits on top of ``rq`` and uses
|
||
|
Redis as the storage backend.
|
||
|
|
||
|
Once infra has been set up fully to support this, documentation will be expanded,
|
||
|
but for local development you can start a worker to process jobs in the queue with:
|
||
|
|
||
|
.. code-block:: bash
|
||
|
|
||
|
make run-local-task-queue
|
||
|
|
||
|
Note that you will need Redis running on its default port of 6379. Redis is
|
||
|
started by default when using Dockerized Bedrock locally.
|
||
|
|