Put TRAP cache cleanup behind a feature flag

This commit is contained in:
Henry Mercer 2024-05-22 19:14:50 +01:00
parent 4f2b1826e9
commit 6ccd5631d8
9 changed files with 35 additions and 6 deletions

View file

@ -321,7 +321,11 @@ async function run() {
trapCacheUploadTime = performance.now() - trapCacheUploadStartTime;
// Clean up TRAP caches
trapCacheCleanupTelemetry = await cleanupTrapCaches(config, logger);
trapCacheCleanupTelemetry = await cleanupTrapCaches(
config,
features,
logger,
);
// We don't upload results in test mode, so don't wait for processing
if (util.isInTestMode()) {