Add metric (+fix) (#15400)
This commit is contained in:
+4
-5
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user