Run a Ray Job
Call function.run(action="job", ...) to execute a Ray function on a dynamically created cluster.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| action | str | ✓ | Action to execute. Must be job. |
| volumes | list[dict] | List of volumes. | |
| resources | dict | Resource limits and requests for each worker task. | |
| envs | list[dict] | Environment variables. | |
| secrets | list[str] | List of secret names. | |
| profile | str | Profile template for each worker task. | |
| replicas | int | Initial number of worker replicas. | |
| min_replicas | int | Minimum number of worker replicas. | |
| max_replicas | int | Maximum number of worker replicas. | |
| parameters | dict | Parameters passed to the Ray application. |