mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 12:58:02 +08:00
feat(metrics): add scheduler related metrics (#2076)
Signed-off-by: Alexei Dodon <adodon@cisco.com>
This commit is contained in:
@@ -63,3 +63,13 @@ func NewTask(imgStore storageTypes.ImageStore, repo string, log log.Logger) *Tas
|
||||
func (scrubT *Task) DoWork(ctx context.Context) error {
|
||||
return RunScrubRepo(ctx, scrubT.imgStore, scrubT.repo, scrubT.log) //nolint: contextcheck
|
||||
}
|
||||
|
||||
func (scrubT *Task) String() string {
|
||||
return fmt.Sprintf("{taskGenerator: \"%s\", repo: \"%s\"}",
|
||||
"image scrub", // description of generator's task purpose
|
||||
scrubT.repo)
|
||||
}
|
||||
|
||||
func (scrubT *Task) Name() string {
|
||||
return "ScrubTask"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user