Neil Wadhvana
11/25/2024, 10:06 PMdaft - If i leave it until later (ie. after we build some dataframes and imported them from a different file), daft complains with
230 warnings.warn(
231 "Calling daft.context.set_runner_ray(noop_if_initialized=True) multiple times has no effect beyond the first call."
232 )
233 return ctx
--> 234 raise RuntimeError("Cannot set runner more than once")
236 from daft.runners.ray_runner import RayRunner
238 ctx._runner = RayRunner(
239 address=address,
240 max_task_backlog=max_task_backlog,
241 force_client_mode=force_client_mode,
242 )
RuntimeError: Cannot set runner more than onceNeil Wadhvana
11/25/2024, 10:07 PMjay
11/25/2024, 10:13 PM__main__ entrypoint, or similar.Neil Wadhvana
11/25/2024, 10:15 PMjay
11/25/2024, 10:16 PMDAFT_RUNNER=ray/py/native environment variable to set the runner? That could be a much better user experience overallNeil Wadhvana
11/25/2024, 10:17 PMdirenv setup.jay
11/25/2024, 10:17 PMRAY_ADDRESS=… that Ray uses for detecting Ray connections too.
DAFT_RUNNER=ray
RAY_ADDRESS=...