From c7cb9cc1fb08159fbe948e19351d719288d4e674 Mon Sep 17 00:00:00 2001 From: Chae Cramb Date: Tue, 3 Dec 2024 13:20:30 +0000 Subject: [PATCH] Search API v2: Schedule user events import (production) This adds two scheduled tasks to run the two user events import Rake tasks. It has already been deployed and tested in integration. These replace the following GCP Cloud Scheduler runs: https://github.com/alphagov/search-v2-infrastructure/blob/main/terraform/environment/events_ingestion.tf#L366-L484 See alphagov/search-api-v2#351 --- charts/app-config/values-production.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/charts/app-config/values-production.yaml b/charts/app-config/values-production.yaml index 261535aae7f..258b9f9689e 100644 --- a/charts/app-config/values-production.yaml +++ b/charts/app-config/values-production.yaml @@ -2662,6 +2662,12 @@ govukApplications: redis: enabled: true cronTasks: + - name: user-events-import-yesterdays-events + task: "user_events:import_yesterdays_events" + schedule: "30 12 * * *" + - name: user-events-import-intraday-events + task: "user_events:import_intraday_events" + schedule: "45 05,11,17,23 * * *" - name: quality-monitoring-assert-invariants task: "quality_monitoring:assert_invariants" schedule: "09 8-17 * * *" # 9 minutes past the hour every day from 8am-5pm