Skip to content

Commit 5161242

Browse files
committed
used variable job_schedule
1 parent b94144c commit 5161242

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

infra/batch/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ resource "google_cloud_run_service_iam_member" "cloud_run_invoker" {
305305
resource "google_cloud_scheduler_job" "job" {
306306
name = "${var.job_name}-${var.environment}"
307307
description = "Batch job to process datasets"
308-
schedule = "0 0 * * *" # Runs daily at midnight UTC
308+
schedule = var.job_schedule
309309
time_zone = "Etc/UTC"
310310
attempt_deadline = var.job_attempt_deadline
311311
paused = var.environment == "prod" ? false : true

infra/batch/vars.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ variable "job_schedule" {
2727
type = string
2828
description = "Schedule for the scheduler job"
2929
# default every week on monday at 00:00
30-
default = "0 0 * * 1"
30+
default = "0 0 * * *"
3131
}
3232

3333
variable "job_name" {

0 commit comments

Comments
 (0)