ray/doc/source/ray-core
Ofey Chan c6c72a6f89
[Doc] [Core] Enhance actor queue doc code (#24532)
Why are these changes needed?
Current documentation code in Message passing using Ray Queue can be enhanced, for better demonstration of the message queue.

It creates 10 tasks but only 2 consumers, and each consumer consumes one task then exit. Therefore, the output is a bit vague:

(consumer pid=1022727) got work 0
(consumer pid=1022595) got work 1
So I make consumer working until the queue is empty. The output shows consumer 1 and 2 working in parallel:

(consumer pid=1030876) consumer 0 got work 0
(consumer pid=1030876) consumer 0 got work 1
(consumer pid=1030876) consumer 0 got work 3
(consumer pid=1030876) consumer 0 got work 5
(consumer pid=1030876) consumer 0 got work 7
(consumer pid=1030876) consumer 0 got work 9
(consumer pid=1030949) consumer 1 got work 2
(consumer pid=1030949) consumer 1 got work 4
(consumer pid=1030949) consumer 1 got work 6
(consumer pid=1030949) consumer 1 got work 8
P.S. Also fix a typo in doc.
2022-05-15 17:38:21 -07:00
..
_examples/datasets_train [test] add back deleted datasets train test file (#23051) 2022-03-10 21:46:07 -08:00
actors [Doc] [Core] Enhance actor queue doc code (#24532) 2022-05-15 17:38:21 -07:00
doc_code [Doc] [Core] Enhance actor queue doc code (#24532) 2022-05-15 17:38:21 -07:00
examples [Doc][xgboost] fix broken download links #24632 2022-05-10 09:03:26 -07:00
images [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
objects [docs] Add documentation on how to handle read-only arrays and actor reprs (#24410) 2022-05-02 23:52:54 -07:00
tasks [Doc] Improve doc for task locality aware scheduling (#24717) 2022-05-12 13:42:48 -07:00
actors.rst Add actor out-of-band communication doc (#24185) 2022-05-03 21:36:26 -07:00
advanced.rst [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
configure.rst [GCS-Ray] update doc and error message for GCS-Ray (#22528) 2022-02-22 17:56:30 -08:00
cross-language.rst [C++ Worker]Python call cpp worker (#22820) 2022-03-10 11:06:14 -08:00
handling-dependencies.rst [runtime env] Add FAQ for runtime_env (#24412) 2022-05-13 11:03:58 -05:00
key-concepts.rst [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
more-topics.rst [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
namespaces.rst [docs] integrate algolia docsearch, move to sphinx panels (#21814) 2022-01-24 17:00:41 -08:00
objects.rst [doc] Improve the object reference documentation (#24636) 2022-05-10 18:39:16 -07:00
package-ref.rst [Doc] Add doc for usage stats collection (#24522) 2022-05-10 17:18:49 -07:00
placement-group.rst [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
ray-dashboard.rst Fix broken links in documentation and put linkcheck linter in place on CI (#23340) 2022-03-18 21:02:52 -07:00
starting-ray.rst Pythonic assert for initialization (#24378) 2022-05-01 22:01:10 -07:00
tasks.rst [Doc] Add scheduling doc (#23343) 2022-03-20 16:05:06 -07:00
tips-for-first-time.rst [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
troubleshooting.rst Fix broken links in documentation and put linkcheck linter in place on CI (#23340) 2022-03-18 21:02:52 -07:00
user-guide.rst [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
using-ray-with-jupyter.rst [docs] re/move old core examples (#22802) 2022-03-10 12:17:00 -08:00
walkthrough.rst [C++ API][Doc] Add doc and error log to notice C++ API is not supported on Windows (#23272) 2022-03-18 10:52:57 +08:00