From 05c5a712e3c29b88f898b4d99ddf3fdadceda0e5 Mon Sep 17 00:00:00 2001 From: Ioanna Kokkini Date: Wed, 22 May 2024 13:11:22 +0100 Subject: [PATCH] Add europe and international in the high frequency paths These fronts are pressed every 2 minutes in CODE and every 1 minute in PROD. These regular presses are triggered by a cron job running in the admin app and can have high, standard or low frequency. Editions and sports fronts have a high update frequency. The job is important because content for a front can be coming from CAPI and change without any update from the Fronts tool, e.g. a snap link. See more about the fronts architecutre here: https://github.com/guardian/frontend/blob/main/docs/02-architecture/02-fronts-architecture.md --- admin/app/jobs/RefreshFrontsJob.scala | 2 +- facia-press/app/frontpress/FrontPressCron.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/app/jobs/RefreshFrontsJob.scala b/admin/app/jobs/RefreshFrontsJob.scala index d3d7e5217e1a..4c5673929e8b 100644 --- a/admin/app/jobs/RefreshFrontsJob.scala +++ b/admin/app/jobs/RefreshFrontsJob.scala @@ -13,7 +13,7 @@ object LowFrequency extends FrontType object StandardFrequency extends FrontType object HighFrequency extends FrontType { def highFrequencyPaths: List[String] = - List("uk", "us", "au", "uk/sport", "us/sport", "au/sport") + List("uk", "us", "au", "europe", "international", "uk/sport", "us/sport", "au/sport") } case class CronUpdate(path: String, frontType: FrontType) diff --git a/facia-press/app/frontpress/FrontPressCron.scala b/facia-press/app/frontpress/FrontPressCron.scala index 12e2f9f94486..702ab79c7d83 100644 --- a/facia-press/app/frontpress/FrontPressCron.scala +++ b/facia-press/app/frontpress/FrontPressCron.scala @@ -10,7 +10,7 @@ import services.ConfigAgent import scala.concurrent.{ExecutionContext, Future} -class FrontPressCron(liveFapiFrontPress: LiveFapiFrontPress, toolPressQueueWorker: ToolPressQueueWorker)(implicit +class FrontPressCron(liveFapiFrontPress: LiveFapiFrontPress)(implicit executionContext: ExecutionContext, ) extends JsonQueueWorker[SNSNotification] { override val deleteOnFailure: Boolean = true