Skip to content

Commit

Permalink
Merge pull request #58 from los-verdes/toggle_slack_etl_back_on
Browse files Browse the repository at this point in the history
toggle slack members etl back on (but paused)
  • Loading branch information
jeffwecan authored Feb 17, 2024
2 parents 57c1710 + f4563e4 commit a9f234d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions terraform/scheduler.tf
Original file line number Diff line number Diff line change
@@ -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 * * * *"
Expand All @@ -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
Expand Down

0 comments on commit a9f234d

Please sign in to comment.