@@ -11,8 +11,10 @@ executes them and updates status & log url in :ref:`database`. Implemented using
1111 Each worker process is bound to one ot more Queues. You have to created it before starting a worker.
1212 This can be done via :ref: `frontend ` or via :ref: `server ` REST API.
1313
14- Queue field ``slug `` value is then should be passed to Celery argument ``-Q ``.
15- For example, for slug ``123-test_queue `` this should be ``-Q 123-test_queue ``.
14+ Queue field ``slug `` value is then should be passed to Celery worker argument ``--queues ``.
15+ For example, for slug ``123-test_queue `` this should be ``--queues 123-test_queue ``.
16+
17+ Worker can listen multiple queues at the same time, you can pass a list with ``, `` as delimiter.
1618
1719Install & run
1820-------------
@@ -25,6 +27,7 @@ With docker
2527* Go to `frontend <http://localhost:3000> `
2628* Create new Group
2729* Create Queue in this group, and then get **Queue.slug ** (e.g. ``123-test_queue ``)
30+ * Pass queue slug as ``--queues $slug `` into ```worker:command `` section of ``docker-compose.yml `` (see below)
2831* Run the following command:
2932
3033 .. code :: console
@@ -79,19 +82,19 @@ Without docker
7982
8083 .. code-block :: console
8184
82- $ python -m celery -A syncmaster.worker.celery worker -Q 123-test_queue --max-tasks-per-child=1
85+ $ python -m celery -A syncmaster.worker.celery worker --queues 123-test_queue --max-tasks-per-child=1
8386
8487 You can specify options like concurrency and queues by adding additional flags:
8588
8689 .. code-block :: bash
8790
88- $ python -m celery -A syncmaster.worker.celery worker -Q 123-test_queue --max-tasks-per-child=1 --concurrency=4 --loglevel=info
91+ $ python -m celery -A syncmaster.worker.celery worker --queues 123-test_queue --max-tasks-per-child=1 --concurrency=4
8992
9093 Refer to the `Celery <https://docs.celeryq.dev/en/stable/ >`_ documentation for more advanced start options.
9194
9295 .. note ::
9396
94- ``--max-tasks-per-child=1 `` flag is important!
97+ ``--max-tasks-per-child=1 `` flag is important for Spark to properly work !
9598
9699See also
97100--------
0 commit comments