jay
05/29/2024, 10:29 PMdaft.context.set_runner_ray/py
, this overrides all behavior
◦ If a user calls daft.context.set_runner_ray
with a specified address, but Ray is already initialized, we warn them that their address is being ignored
• Otherwise, on first execution Daft will attempt to retrieve the runner config from the current environment:
◦ Check for the DAFT_RUNNER
environment variable for `RAY`/`PY`
◦ Check to see if Ray is initialized, and if we aren’t running in a Ray worker: RAY
◦ Fallback onto: PY
Kevin Wang
05/30/2024, 12:10 AM◦ If a user callsIf Ray is already initialized, and the user wants to connect to a different Ray cluster, would that prevent this?with a specified address, but Ray is already initialized, we warn them that their address is being ignoreddaft.context.set_runner_ray
Kevin Wang
05/30/2024, 12:11 AMjay
05/30/2024, 5:03 PMIf Ray is already initialized, and the user wants to connect to a different Ray cluster, would that prevent this?That isn’t allowed right now. I don’t think we can make that work either as the Ray SDK can only be initialized once!
Kevin Wang
05/30/2024, 5:46 PM