Skip to content

Commit b94144c

Browse files
committed
updated schedule to run the job daily at midnight UTC
1 parent ee13a5a commit b94144c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

infra/batch/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ resource "google_datastore_index" "batch_execution_index_execution_id_timestamp"
212212
name = "execution_id"
213213
direction = "ASCENDING"
214214
}
215+
215216
properties {
216217
name = "timestamp"
217218
direction = "ASCENDING"
@@ -304,7 +305,7 @@ resource "google_cloud_run_service_iam_member" "cloud_run_invoker" {
304305
resource "google_cloud_scheduler_job" "job" {
305306
name = "${var.job_name}-${var.environment}"
306307
description = "Batch job to process datasets"
307-
schedule = var.job_schedule
308+
schedule = "0 0 * * *" # Runs daily at midnight UTC
308309
time_zone = "Etc/UTC"
309310
attempt_deadline = var.job_attempt_deadline
310311
paused = var.environment == "prod" ? false : true

0 commit comments

Comments
 (0)