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])
| 584 | @add_click_logging_options |
| 585 | @PublicAPI(stability="stable") |
| 586 | def 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) |
searching dependent graphs…