Ray
serve build
Get the runtime context of the current driver/worker.
Example
import ray # Get the job id. ray.get_runtime_context().get_job_id()
PublicAPI: This API is stable across Ray releases.