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

Function list

python/ray/dashboard/modules/job/cli.py:586–600  ·  view source on GitHub ↗

Lists all running jobs and their information. Example: `ray job list` Args: address: Address of the Ray cluster to connect to. headers: JSON string of headers to attach to requests. verify: Path to a CA bundle, or boolean toggling TLS verification.

(address: Optional[str], headers: Optional[str], verify: Union[bool, str])

Source from the content-addressed store, hash-verified

584@add_click_logging_options
585@PublicAPI(stability="stable")
586def list(address: Optional[str], headers: Optional[str], verify: Union[bool, str]):
587 """Lists all running jobs and their information.
588
589 Example:
590 `ray job list`
591
592 Args:
593 address: Address of the Ray cluster to connect to.
594 headers: JSON string of headers to attach to requests.
595 verify: Path to a CA bundle, or boolean toggling TLS verification.
596 """
597 client = _get_sdk_client(address, headers=headers, verify=verify)
598 # Set no_format to True because the logs may have unescaped "{" and "}"
599 # and the CLILogger calls str.format().
600 cli_logger.print(pprint.pformat(client.list_jobs()), no_format=True)

Callers 15

setup.pyFile · 0.85
list_all_nodesMethod · 0.85
shutdownMethod · 0.85
get_function_argsFunction · 0.85
validate_task_optionsFunction · 0.85
validate_actor_optionsFunction · 0.85
extract_signatureFunction · 0.85

Calls 3

_get_sdk_clientFunction · 0.85
printMethod · 0.45
list_jobsMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…