get#

CompiledDAGRef.get(timeout: float | None = None)[source]#

Wait for the execution result and return it.

ray.get() on a CompiledDAGRef calls this method. It can be called only once per CompiledDAGRef.

Parameters:

timeout (float | None) – The maximum time in seconds to wait for the execution. None uses the compiled graph’s default get timeout, 0 returns or times out without blocking, and -1 waits indefinitely.

Returns:

The execution result.

Raises:

ValueError – If the result was already retrieved.