(record *AgentTaskRecord, createTaskScope bool)
| 768 | } |
| 769 | |
| 770 | func (rt *AgentTaskRuntime) registerRecordLocked(record *AgentTaskRecord, createTaskScope bool) { |
| 771 | rt.records[record.TaskID] = record |
| 772 | rt.taskParentScopes[record.TaskID] = record.ParentScopeID |
| 773 | rt.childCounts[record.ParentScopeID]++ |
| 774 | rt.scopes[record.ParentScopeID] = struct{}{} |
| 775 | if createTaskScope { |
| 776 | rt.scopes[record.TaskID] = struct{}{} |
| 777 | } |
| 778 | } |
| 779 | |
| 780 | func (rt *AgentTaskRuntime) scheduleIdleTTLLocked(taskID string) { |
| 781 | rt.cancelIdleTTLLocked(taskID) |
no outgoing calls
no test coverage detected