Scaling Python with Ray by Holden Karau & Boris Lublinsky

Scaling Python with Ray by Holden Karau & Boris Lublinsky

Author:Holden Karau & Boris Lublinsky [Holden Karau]
Language: eng
Format: epub, pdf
Publisher: O'Reilly Media, Inc.
Published: 2023-06-24T16:00:00+00:00


Warning

Canceling a task should not be part of your normal program flow. If you find yourself having to kill tasks frequently, you should investigate what’s going on. Any subsequent calls to wait or get for a canceled task are unspecified and could raise an exception or return incorrect results.

Another minor point that we skipped in the previous chapter is that while the examples so far return only a single value. Ray remote functions can return multiple values, as with regular Python functions.

Fault tolerance is an important consideration for those running in a distributed environment. If the worker executing the task dies unexpectedly,6 Ray will rerun the task (after a delay) until either the task succeeds or the maximum number of retries is exceeded. We cover fault tolerance more in [Link to Come].



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.