Method
getTaskLocked
(taskID, scopeID string, forceScopeCheck bool)
Source from the content-addressed store, hash-verified
| 757 | } |
| 758 | |
| 759 | func (rt *AgentTaskRuntime) getTaskLocked(taskID, scopeID string, forceScopeCheck bool) *AgentTaskRecord { |
| 760 | record := rt.records[taskID] |
| 761 | if record == nil { |
| 762 | return nil |
| 763 | } |
| 764 | if forceScopeCheck && record.ParentScopeID != scopeID { |
| 765 | return nil |
| 766 | } |
| 767 | return record |
| 768 | } |
| 769 | |
| 770 | func (rt *AgentTaskRuntime) registerRecordLocked(record *AgentTaskRecord, createTaskScope bool) { |
| 771 | rt.records[record.TaskID] = record |
Tested by
no test coverage detected