github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/hk/common_durations.go (about) 1 // Package hk provides mechanism for registering cleanup 2 // functions which are invoked at specified intervals. 3 /* 4 * Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. 5 */ 6 package hk 7 8 import "time" 9 10 // common cleanup-related durations 11 12 const ( 13 DelOldIval = 8 * time.Minute // hk interval: cleanup old 14 PruneActiveIval = 2 * time.Minute // hk interval: prune active 15 16 OldAgeLso = time.Minute // when list-objects is considered old 17 OldAgeLsoNotif = 10 * time.Second // notifications-wise 18 OldAgeX = time.Hour // all other X 19 )