SDK reference / Models / Jobs

Job

Kind: class

Namespace: Egulu.Sdk.Models.Jobs

A batch or training job execution (ADR-0407, ADR-1001).

Properties

NameTypeJSON nameDescription
AnnotationsModels.Jobs.Job_annotations?annotationsAt most 256 KiB in all; never policy input.
ArgsList<string>?argsArguments passed to the entrypoint.
AttemptHistoryList<Models.Jobs.JobAttempt>?attemptHistoryThe attempts since the job was last requeued, oldest first (returned by get, not by list).
Attemptsint?attemptsNumber of execution attempts so far.
CommandList<string>?commandEntrypoint command array.
CreateTimeDateTimeOffset?createTimeThe createTime property
Deadlinestring?deadlineExecution deadline duration (for example 3600s or PT1H) or RFC 3339 timestamp.
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
EndTimeDateTimeOffset?endTimeWhen execution finished.
EnvModels.Jobs.Job_env?envNon-secret environment variables injected into the container.
Etagstring?etag"{generation}"; send it back in If-Match.
ExitCodeint?exitCodeProcess exit code once terminated.
Imagestring?imageOCI container image reference or digest.
LabelsModels.Jobs.Job_labels?labelsAt most 64.
MaxRetriesint?maxRetriesShorthand maximum retries when retryPolicy is omitted.
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
NextRetryTimeDateTimeOffset?nextRetryTimeThe next retry instant while the job waits for its back-off.
Prioritystring?priorityPriority band: interactive | standard | batch | spot-batch (default standard).
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
ResourcesModels.Jobs.JobResources?resourcesResource requests (CPU, memory, GPU, scratch).
RetryPolicyModels.Jobs.JobRetryPolicy?retryPolicyRetry policy for exit code 75 and transient failures.
RunAsstring?runAsThe service account the run acts as: projects/{project}/serviceAccounts/{id}. Absent when none is named.
Schedulestring?scheduleParent schedule resource name when spawned by a schedule.
ScheduledTimeDateTimeOffset?scheduledTimeThe firing instant of the schedule slot that made this job; absent for a job started by hand.
SecretsList<Models.Jobs.JobSecretRef>?secretsSecret versions injected into the container; the value never appears in the resource.
StartTimeDateTimeOffset?startTimeWhen execution started.
StartedBystring?startedByWho started the job: `schedule` for a scheduled firing, otherwise the principal that created it or ran its schedule now.
StateModels.Jobs.JobState?stateCurrent lifecycle state.
SuspendReasonstring?suspendReasonWhy the job was suspended (for example spend-cap or user).
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property