Skip to content

Commit 9d94496

Browse files
ioannakokmarjisound
andcommitted
Delete AssetMetrics file and AssetMetricsCache job
There is no `Assets` namespace in AWS metrics. Also, there is no code in the repo that puts any metrics to this namespace. Co-authored-by: Marjan Kalanaki <[email protected]>
1 parent 68bf291 commit 9d94496

File tree

2 files changed

+1
-115
lines changed

2 files changed

+1
-115
lines changed

admin/app/model/AdminLifecycle.scala

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import conf.switches.Switches._
88
import _root_.jobs._
99
import play.api.inject.ApplicationLifecycle
1010
import services.EmailService
11-
import tools.{AssetMetricsCache, CloudWatch, LoadBalancer}
11+
import tools.{CloudWatch, LoadBalancer}
1212

1313
import scala.concurrent.duration._
1414
import scala.concurrent.{ExecutionContext, Future}
@@ -84,11 +84,6 @@ class AdminLifecycle(
8484
log.info("Starting ExpiringSwitchesAfternoonEmailJob")
8585
ExpiringSwitchesEmailJob(emailService).runReminder()
8686
}
87-
88-
jobs.scheduleEveryNMinutes("AssetMetricsCache", 60 * 6) {
89-
AssetMetricsCache.run()
90-
}
91-
9287
}
9388

9489
private def descheduleJobs(): Unit = {
@@ -111,7 +106,6 @@ class AdminLifecycle(
111106

112107
pekkoAsync.after1s {
113108
rebuildIndexJob.run()
114-
AssetMetricsCache.run()
115109
LoadBalancer.refresh()
116110
}
117111
}

admin/app/tools/AssetMetrics.scala

Lines changed: 0 additions & 108 deletions
This file was deleted.

0 commit comments

Comments
 (0)