Skip to content

Commit

Permalink
Add europe and international in the high frequency paths
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ioannakok committed May 22, 2024
1 parent fd217d8 commit 05c5a71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/app/jobs/RefreshFrontsJob.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion facia-press/app/frontpress/FrontPressCron.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 05c5a71

Please sign in to comment.