SDK reference / Models / Jobs

JobTemplate

Kind: class

Namespace: Egulu.Sdk.Models.Jobs

Template used by a Schedule to create Job executions (ADR-0407).

Properties

NameTypeJSON nameDescription
ArgsList<string>?argsArguments passed to the entrypoint.
CommandList<string>?commandEntrypoint command array.
Deadlinestring?deadlineExecution deadline duration (for example 3600s).
EnvModels.Jobs.JobTemplate_env?envNon-secret environment variables injected into the container.
Imagestring?imageOCI 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).
Prioritystring?priorityPriority band: interactive | standard | batch | spot-batch (default batch).
ResourcesModels.Jobs.JobResources?resourcesResource requests (CPU, memory, GPU, scratch).
RetryPolicyModels.Jobs.JobRetryPolicy?retryPolicyRetry policy for exit code 75 and transient failures.
SecretsList<Models.Jobs.JobSecretRef>?secretsSecret versions injected into the container; the value never appears in the resource.
WebAppIdstring?webAppIdA 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.