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

Method _get_current_task_id

python/ray/runtime_context.py:277–278  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

275 return task_id.hex() if not task_id.is_nil() else None
276
277 def _get_current_task_id(self) -> TaskID:
278 return self.worker.current_task_id
279
280 def get_task_name(self) -> Optional[str]:
281 """Get current task name for this worker.

Callers 3

task_idMethod · 0.95
get_task_idMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected