MCPcopy Create free account
hub / github.com/feast-dev/feast / get_ray_wrapper

Function get_ray_wrapper

sdk/python/feast/infra/ray_initializer.py:878–891  ·  view source on GitHub ↗

Get the appropriate Ray wrapper based on current initialization mode. Returns: StandardRayWrapper for local/remote modes, CodeFlareRayWrapper for KubeRay mode

()

Source from the content-addressed store, hash-verified

876
877
878def get_ray_wrapper() -> Union[StandardRayWrapper, CodeFlareRayWrapper]:
879 """
880 Get the appropriate Ray wrapper based on current initialization mode.
881
882 Returns:
883 StandardRayWrapper for local/remote modes, CodeFlareRayWrapper for KubeRay mode
884 """
885 global _ray_wrapper
886
887 if _ray_wrapper is None:
888 # Return a standard Ray wrapper for local/remote modes
889 _ray_wrapper = StandardRayWrapper()
890
891 return _ray_wrapper
892
893
894def is_ray_initialized() -> bool:

Callers 15

_ensure_executedMethod · 0.90
executeMethod · 0.90
executeMethod · 0.90
_get_ray_datasetMethod · 0.90
offline_write_batchMethod · 0.90
write_logged_featuresMethod · 0.90

Calls 1

StandardRayWrapperClass · 0.85