Run a Python Job
Call function.run(action="job", ...) to execute the handler as a one-off task.
Task and run parameters
| Name | Type | Required | Description |
|---|---|---|---|
| action | str | ✓ | Action to execute. Must be job. |
| volumes | list[dict] | List of volumes. | |
| resources | dict | Resource values with optional cpu, mem, gpu, and disk keys. |
|
| envs | list[dict] | Environment variables. | |
| secrets | list[str] | List of secret names. | |
| profile | str | Profile template. | |
| local_execution | bool | Execute the handler locally instead of remotely. Defaults to False; local dependencies must already be installed. |
|
| inputs | dict | Mapping of handler argument names to platform entity keys. | |
| parameters | dict | Extra values passed to handler arguments. | |
| init_parameters | dict | Values supplied to the init function. |
For remote execution, ensure the configured image contains the required dependencies. For local execution, dependencies must already be installed locally.