Add metric (+fix) (#15400)

This commit is contained in:
Etienne
2025-10-28 12:57:31 +01:00
committed by GitHub
parent b9bdb12b3c
commit 99d73d1d4b
4 changed files with 21 additions and 6 deletions
@@ -356,6 +356,10 @@ export class CleanerWorkspaceService {
);
if (!dryRun) {
await this.workspaceService.deleteWorkspace(workspace.id);
this.metricsService.incrementCounter({
key: MetricsKeys.CronJobDeletedWorkspace,
shouldStoreInCache: false,
});
}
deletedWorkspacesCount++;
}
@@ -450,11 +454,6 @@ export class CleanerWorkspaceService {
if (!dryRun) {
await this.workspaceService.deleteWorkspace(workspace.id);
this.metricsService.incrementCounter({
key: MetricsKeys.CronJobDeletedWorkspace,
shouldStoreInCache: false,
});
}
this.logger.log(