SDK reference / Models / Jobs
JobTemplate
Kind: class
Namespace: Egulu.Sdk.Models.Jobs
Template used by a Schedule to create Job executions (ADR-0407).
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
Args | List<string>? | args | Arguments passed to the entrypoint. |
Command | List<string>? | command | Entrypoint command array. |
Deadline | string? | deadline | Execution deadline duration (for example 3600s). |
Env | Models.Jobs.JobTemplate_env? | env | Non-secret environment variables injected into the container. |
Image | string? | image | OCI container image reference or digest. With `webAppId` set, send `webapp:live`: the platform runs the web app's live revision image on every run (making this field optional would be a breaking change). |
Priority | string? | priority | Priority band: interactive | standard | batch | spot-batch (default batch). |
Resources | Models.Jobs.JobResources? | resources | Resource requests (CPU, memory, GPU, scratch). |
RetryPolicy | Models.Jobs.JobRetryPolicy? | retryPolicy | Retry policy for exit code 75 and transient failures. |
Secrets | List<Models.Jobs.JobSecretRef>? | secrets | Secret versions injected into the container; the value never appears in the resource. |
WebAppId | string? | webAppId | A web app in the same project and location: each run uses the app's live (production) revision, with the app's environment and secret pins(IP-04). The command and arguments here replace the app's start command. `image` must be `webapp:live` with it. |