From d79af8afcef4482d7b577b54e1a794377cc52684 Mon Sep 17 00:00:00 2001 From: Mike H Date: Fri, 6 Dec 2024 16:30:21 -0500 Subject: [PATCH] [Issue #3134] Add schedule for `export-opportunity-data` (#3135) ## Summary Fixes #3134 ### Time to review: 5 mins ## Changes proposed Add a scheduler to run this task. ## Context for reviewers Last bit of work for the export to run nightly. --- infra/api/app-config/env-config/scheduled_jobs.tf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/infra/api/app-config/env-config/scheduled_jobs.tf b/infra/api/app-config/env-config/scheduled_jobs.tf index a6926d46e..9855fc1ae 100644 --- a/infra/api/app-config/env-config/scheduled_jobs.tf +++ b/infra/api/app-config/env-config/scheduled_jobs.tf @@ -52,5 +52,11 @@ locals { schedule_expression = "cron(30 * * * ? *)" state = "ENABLED" } + export-opportunity-data = { + task_command = ["poetry", "run", "flask", "task", "export-opportunity-data"] + # Every day at 4am Eastern Time during DST. 5am during non-DST. + schedule_expression = "cron(0 9 * * ? *)" + state = "ENABLED" + } } }