diff --git a/terraform/scheduler.tf b/terraform/scheduler.tf index 68e9404e..6672a43e 100644 --- a/terraform/scheduler.tf +++ b/terraform/scheduler.tf @@ -1,12 +1,13 @@ locals { scheduler_jobs = { - # run_slack_members_etl = { - # description = "Sync Slack member / user data into local digital membership database" - # schedule = "0 */6 * * *" - # data = { - # type = "run_slack_members_etl", - # } - # } + run_slack_members_etl = { + description = "Sync Slack member / user data into local digital membership database" + schedule = "0 */6 * * *" + paused = true + data = { + type = "run_slack_members_etl", + } + } sync_customers_etl = { description = "Sync E-commerce customer / user data into local digital membership database" schedule = "30 * * * *" @@ -22,6 +23,7 @@ resource "google_cloud_scheduler_job" "worker" { name = each.key description = each.value.description schedule = each.value.schedule + paused = lookup(each.value, "paused", false) pubsub_target { topic_name = google_pubsub_topic.digital_membership.id