MCPcopy Create free account
hub / github.com/devfeel/dottask / PrintAllTaskCounterInfo

Method PrintAllTaskCounterInfo

tasks.go:315–322  ·  view source on GitHub ↗

PrintAllTaskCounterInfo print all task counter data

()

Source from the content-addressed store, hash-verified

313
314// PrintAllTaskCounterInfo print all task counter data
315func (service *TaskService) PrintAllTaskCounterInfo() string {
316 body := ""
317 for _, v := range service.taskMap {
318 body += fmt.Sprintln(v.TaskID(), "Run", v.CounterInfo().RunCounter.Count())
319 body += fmt.Sprintln(v.TaskID(), "Error", v.CounterInfo().ErrorCounter.Count())
320 }
321 return body
322}
323
324// GetAllTaskCountInfo return all show count info
325func (service *TaskService) GetAllTaskCountInfo() []ShowCountInfo {

Callers 1

mainFunction · 0.80

Calls 3

TaskIDMethod · 0.65
CountMethod · 0.65
CounterInfoMethod · 0.65

Tested by

no test coverage detected