Run a Container Job
Call function.run(action="job", ...) to execute the container. Pass action and execution parameters as keyword arguments to the same call.
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. Example: {"cpu": "1", "mem": "512Mi"}. |
|
| envs | list[dict] | Environment variables. Example: [{"name": "FOO", "value": "bar"}]. |
|
| secrets | list[str] | List of secret names. | |
| profile | str | Profile template. | |
| fs_group | int | File system group ID. Must be positive. | |
| run_as_user | int | User ID to run the container. Must be non-negative. | |
| run_as_group | int | Group ID to run the container. Must be non-negative. | |
| args | list[str] | Command-line arguments to pass to the container command. |