ray.runtime_context.RuntimeContext.get_worker_id#

RuntimeContext.get_worker_id() str[source]#

Get current worker ID for this worker or driver process.

Returns:

A worker id in hex format for this worker or driver process.