SDK reference / Models / Jobs
Job
Kind: class
Namespace: Egulu.Sdk.Models.Jobs
A batch or training job execution (ADR-0407, ADR-1001).
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
Annotations | Models.Jobs.Job_annotations? | annotations | At most 256 KiB in all; never policy input. |
Args | List<string>? | args | Arguments passed to the entrypoint. |
AttemptHistory | List<Models.Jobs.JobAttempt>? | attemptHistory | The attempts since the job was last requeued, oldest first (returned by get, not by list). |
Attempts | int? | attempts | Number of execution attempts so far. |
Command | List<string>? | command | Entrypoint command array. |
CreateTime | DateTimeOffset? | createTime | The createTime property |
Deadline | string? | deadline | Execution deadline duration (for example 3600s or PT1H) or RFC 3339 timestamp. |
DeleteTime | DateTimeOffset? | deleteTime | The deleteTime property |
DisplayName | string? | displayName | Up to 63 characters. |
EndTime | DateTimeOffset? | endTime | When execution finished. |
Env | Models.Jobs.Job_env? | env | Non-secret environment variables injected into the container. |
Etag | string? | etag | "{generation}"; send it back in If-Match. |
ExitCode | int? | exitCode | Process exit code once terminated. |
Image | string? | image | OCI container image reference or digest. |
Labels | Models.Jobs.Job_labels? | labels | At most 64. |
MaxRetries | int? | maxRetries | Shorthand maximum retries when retryPolicy is omitted. |
Name | string? | name | The resource name, for example projects/p/locations/l/instances/i. |
NextRetryTime | DateTimeOffset? | nextRetryTime | The next retry instant while the job waits for its back-off. |
Priority | string? | priority | Priority band: interactive | standard | batch | spot-batch (default standard). |
PurgeTime | DateTimeOffset? | purgeTime | The purgeTime property |
Reconciling | bool? | reconciling | True while the platform works toward the spec. |
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. |
RunAs | string? | runAs | The service account the run acts as: projects/{project}/serviceAccounts/{id}. Absent when none is named. |
Schedule | string? | schedule | Parent schedule resource name when spawned by a schedule. |
ScheduledTime | DateTimeOffset? | scheduledTime | The firing instant of the schedule slot that made this job; absent for a job started by hand. |
Secrets | List<Models.Jobs.JobSecretRef>? | secrets | Secret versions injected into the container; the value never appears in the resource. |
StartTime | DateTimeOffset? | startTime | When execution started. |
StartedBy | string? | startedBy | Who started the job: `schedule` for a scheduled firing, otherwise the principal that created it or ran its schedule now. |
State | Models.Jobs.JobState? | state | Current lifecycle state. |
SuspendReason | string? | suspendReason | Why the job was suspended (for example spend-cap or user). |
Uid | string? | uid | UUIDv7, never reused. |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |