SDK reference / Models / Jobs

Schedule

Kind: class

Namespace: Egulu.Sdk.Models.Jobs

A recurring cron schedule that creates Jobs (ADR-0407).

Properties

NameTypeJSON nameDescription
AnnotationsModels.Jobs.Schedule_annotations?annotationsAt most 256 KiB in all; never policy input.
ArgsList<string>?argsShorthand arguments array when jobTemplate is omitted.
CommandList<string>?commandShorthand command array when jobTemplate is omitted.
ConcurrencyPolicyModels.Jobs.ScheduleConcurrencyPolicy?concurrencyPolicyWhat happens when the previous run has not finished at the next firing (default ALLOW).
CreateTimeDateTimeOffset?createTimeThe createTime property
Cronstring?cronStandard 5-field cron expression (minute hour day-of-month month day-of-week).
Deadlinestring?deadlineExecution deadline shorthand when jobTemplate is omitted.
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
Etagstring?etag"{generation}"; send it back in If-Match.
Imagestring?imageShorthand container image when jobTemplate is omitted (for example from the CLI).
JobTemplateModels.Jobs.JobTemplate?jobTemplateTemplate for jobs spawned by this schedule.
LabelsModels.Jobs.Schedule_labels?labelsAt most 64.
LastJobstring?lastJobThe most recent job this schedule made (resource name).
LastRunTimeDateTimeOffset?lastRunTimeMost recent firing instant in UTC.
MissedRunPolicyModels.Jobs.MissedRunPolicy?missedRunPolicyWhat happens to firings the platform missed (default RUN_ONCE).
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
NextRunTimeDateTimeOffset?nextRunTimeNext scheduled firing instant in UTC.
Prioritystring?priorityPriority band shorthand when jobTemplate is omitted.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
RunAsstring?runAsThe service account every run of this schedule acts as: projects/{project}/serviceAccounts/{id} of the same project. Absent when none is named; an empty string clears it.
StartingDeadlineSecondsint?startingDeadlineSecondsHow late a firing may start and still count as on time, in seconds (30..86400; default 300). Past it, missedRunPolicy decides.
StateModels.Jobs.ScheduleState?stateACTIVE while the schedule fires, SUSPENDED while it is paused.
SuspendReasonstring?suspendReasonWhy the schedule is suspended, for example user or spend-cap.
Suspendedbool?suspendedWhether the schedule is paused and will not spawn new jobs.
Timezonestring?timezoneIANA timezone name (default UTC).
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
WebhookEnabledbool?webhookEnabledWhether the schedule's webhook is on: a signed POST to webhookPath starts one run.
WebhookPathstring?webhookPathPath of the public receiver, /hooks/jobs/{hookId}, while the webhook is on. The address carries no secret; the signature is the credential.
WebhookSecretTimeDateTimeOffset?webhookSecretTimeWhen the webhook secret was last made or rotated.