MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetNumJobsConnected

Function GetNumJobsConnected

pkg/jobcontroller/jobcontroller.go:569–579  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

567}
568
569func GetNumJobsConnected() int {
570 jobControllerLock.Lock()
571 defer jobControllerLock.Unlock()
572 count := 0
573 for _, status := range jobConnStates {
574 if status == JobConnStatus_Connected {
575 count++
576 }
577 }
578 return count
579}
580
581func CheckJobConnected(ctx context.Context, jobId string) (*waveobj.Job, error) {
582 job, err := wstore.DBMustGet[*waveobj.Job](ctx, jobId)

Callers 1

updateTelemetryCountsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected