Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions cicd/terraform/envs/production.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
Loading