MCPcopy
hub / github.com/ray-project/ray / get_temp_dir

Method get_temp_dir

python/ray/runtime_context.py:118–127  ·  view source on GitHub ↗

Get the temp directory for the current node. Returns: The temp directory for the current node.

(self)

Source from the content-addressed store, hash-verified

116 return node_id.hex()
117
118 def get_temp_dir(self) -> str:
119 """Get the temp directory for the current node.
120
121 Returns:
122 The temp directory for the current node.
123 """
124 assert (
125 ray.is_initialized()
126 ), "Temp directory is not available because Ray has not been initialized."
127 return self.worker.current_temp_dir
128
129 def get_session_name(self) -> str:
130 """Get the session name for the Ray cluster this process is connected to.

Callers 3

timelineFunction · 0.80
export_timelineFunction · 0.80

Calls 1

is_initializedMethod · 0.45

Tested by

no test coverage detected