ray/doc/source/ray-core/actors
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
..
patterns [Doc] Fix actor fault tolerance link. (#23972) 2022-04-18 11:49:53 -07:00
actor-utils.rst [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
async_api.rst [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
concurrency_group_api.rst [Doc] [Core] Enhance actor queue doc code (#24532) 2022-05-15 17:38:21 -07:00
fault-tolerance.rst [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00
named-actors.rst Add a get_if_exists option for simpler creation of named actors (#23344) 2022-03-23 22:02:58 -07:00
out-of-band-communication.rst Add actor out-of-band communication doc (#24185) 2022-05-03 21:36:26 -07:00
scheduling.rst Add doc for actor spread scheduling (#24552) 2022-05-06 21:36:47 -07:00
task-orders.rst [minor] Fix minor spelling issue on actor task execution 2022-04-12 16:18:25 -07:00
terminating-actors.rst [docs] Core docs refactor (#23216) 2022-03-17 11:26:17 -07:00