From 8d93ec36dfa27399f02ef29ca40b09d1fe582319 Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Wed, 2 Oct 2024 14:01:18 +0200 Subject: dashboard/app: set coverage batching timeout to 12 hours Sometimes 6 hours are not enough to make the quarter long aggregation. Typically 5 hours 30 minutes are enough. And bonus - delete unused constant. --- dashboard/app/coverage_batch.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dashboard/app/coverage_batch.go b/dashboard/app/coverage_batch.go index 505fbe00d..8a720066c 100644 --- a/dashboard/app/coverage_batch.go +++ b/dashboard/app/coverage_batch.go @@ -25,10 +25,7 @@ func initCoverageBatches() { http.HandleFunc("/cron/batch_coverage", handleBatchCoverage) } -const ( - daysToMerge = 7 - batchTimeoutSeconds = 60 * 60 * 6 -) +const batchTimeoutSeconds = 60 * 60 * 12 func handleBatchCoverage(w http.ResponseWriter, r *http.Request) { ctx := appengine.NewContext(r) -- cgit mrf-deployment