Skip to content

Commit

Permalink
Fix cleaning unused CloudTower labels created by CAPE every 24h
Browse files Browse the repository at this point in the history
  • Loading branch information
haijianyang committed Jan 15, 2024
1 parent f6ab21f commit b28d1b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/service/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,7 @@ func (svr *TowerVMService) CleanLabels(keys []string) ([]string, error) {
Where: &models.LabelWhereInput{
KeyIn: keys,
CreatedAtLte: TowerString(time.Now().Add(-24 * time.Hour).UTC().Format(time.RFC3339)),
TotalNum: TowerInt32(0),
},
}

Expand Down

0 comments on commit b28d1b0

Please sign in to comment.