TECHNOLOGY

Pin a scheduled inference window to an explicit timezone

In this article
THE QUICK TAKE

Declare CronJob timeZone explicitly and distinguish civil-time scheduling from container timestamps and actual execution time.

A nightly inference export begins at a different civil hour after a controller move. A CronJob schedule without an explicit time zone depends on the controller’s local zone. Pinning spec.timeZone makes the schedule’s interpretation reviewable, but it does not turn civil time into an unchanging UTC offset or guarantee a run at every expected instant.

Declare the scheduling zone

Use the supported timeZone field with an accepted IANA zone name. Keep the cron expression itself in its documented syntax; embedded TZ or CRON_TZ directives are not the supported Kubernetes mechanism. Preserve the effective object, because a deployment file with an intended zone is not evidence that admission accepted and stored it.

Separate controller and container clocks

The zone used to decide when a Job is due is distinct from the container’s environment and timestamp formatting. Setting a worker’s TZ variable does not establish the CronJob controller’s scheduling zone. Record output timestamps in an unambiguous form and retain the intended business date separately if the export partitions data by local calendar day.

Review daylight and rule changes

Named zones contain historical and changing civil-time rules. IANA updates them when authorities alter offsets or daylight-saving behavior. A fixed local time and a fixed UTC instant are different requirements. Check the schedule around relevant transitions using the supported environment rather than assuming yesterday’s offset describes every future run.

Preserve missed-run semantics

A clear zone does not remove controller outages, starting deadlines or concurrency policy. Distinguish a schedule interpreted in the wrong zone from a correctly due run that was skipped or not created in time. Keep scheduled eligibility and actual Job creation evidence together. Avoid inferring timing solely from when a heavily loaded worker finally begins inference.

Validate a calendar fixture

Review representative ordinary dates and applicable offset transitions for the intended zone, then observe a disposable schedule without production data. Verify the effective zone, due-time interpretation and output date identity. Success establishes the selected calendar contract for the checked environment; it does not freeze future time-zone legislation or provide exactly-once execution and complete output publication.

Primary references

Kubernetes CronJob.

CronJob API.

IANA Time Zone Database.

Related reading: Reproducible inference stacks: preserving a GPU pilot’s result; Request deadlines: budgeting queueing, prefill and streaming.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles