MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / GetRunningPRDs

Method GetRunningPRDs

internal/loop/manager.go:498–512  ·  view source on GitHub ↗

GetRunningPRDs returns the names of all currently running PRDs.

()

Source from the content-addressed store, hash-verified

496
497// GetRunningPRDs returns the names of all currently running PRDs.
498func (m *Manager) GetRunningPRDs() []string {
499 m.mu.RLock()
500 defer m.mu.RUnlock()
501
502 result := make([]string, 0)
503 for name, instance := range m.instances {
504 instance.mu.Lock()
505 if instance.State == LoopStateRunning {
506 result = append(result, name)
507 }
508 instance.mu.Unlock()
509 }
510
511 return result
512}
513
514// GetRunningCount returns the number of currently running loops.
515func (m *Manager) GetRunningCount() int {

Callers 3

GetRunningCountMethod · 0.95

Calls

no outgoing calls

Tested by 2