From d2785d9321b7f483f1410f5c4b68605018808a4a Mon Sep 17 00:00:00 2001 From: kyokukou Date: Wed, 9 Sep 2026 07:39:44 -0700 Subject: [PATCH] create production job in redirect mode --- cicd/terraform/envs/production.tfvars | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/cicd/terraform/envs/production.tfvars b/cicd/terraform/envs/production.tfvars index a4e8917..5151107 100644 --- a/cicd/terraform/envs/production.tfvars +++ b/cicd/terraform/envs/production.tfvars @@ -49,19 +49,21 @@ jobs = { max_retries = 0 } + daily_update = { + job_name = "mod-daily-digest" + command = ["python"] + args = ["-m", "app.daily_update.main"] + schedule = "20 14 * * 1-5" #weekdays, 20 min after the daily freeze + time_zone = "America/New_York" #needs to follow daylight savings + timeout_seconds = 1200 + max_retries = 5 # this job exits non-zero only when nothing was delivered + + # Production data, test address. Remove this line to go live to real moderators. + env_vars = { REDIRECT_EMAILS = "True" } + } + # Not yet provisioned. Only add these here once the job has proven itself in dev. # - # daily_update = { - # job_name = "mod-daily-digest" - # command = ["python"] - # args = ["-m", "app.daily_update.main"] - # schedule = "20 14 * * 1-5" #weekdays, 20 min after the daily freeze - # time_zone = "America/New_York" #needs to follow daylight savings - # timeout_seconds = 1200 #5 failed sends x (3 attempts x 60s smtp timeout + 20s backoff) - # max_retries = 5 #safe: this job exits non-zero only when nothing was delivered - # env_vars = { REDIRECT_EMAILS = "True" } #remove once ready to go live - # } - # # new_subs = { # job_name = "mod-notification-new-subs" # command = ["python"]