MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / findExpiredTaskIDs

Method findExpiredTaskIDs

agent/task_runtime.go:867–880  ·  view source on GitHub ↗
(taskIDs []string, scopeID string)

Source from the content-addressed store, hash-verified

865}
866
867func (rt *AgentTaskRuntime) findExpiredTaskIDs(taskIDs []string, scopeID string) []string {
868 rt.mu.Lock()
869 defer rt.mu.Unlock()
870 var expired []string
871 for _, taskID := range taskIDs {
872 if _, ok := rt.records[taskID]; ok {
873 continue
874 }
875 if parent, ok := rt.expiredTaskParentScopes[taskID]; ok && parent == scopeID {
876 expired = append(expired, taskID)
877 }
878 }
879 return expired
880}
881
882func (rt *AgentTaskRuntime) scheduleTerminalRecordCleanupLocked(taskID string) {
883 record := rt.records[taskID]

Callers 1

WaitForTasksMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected