(state *AgentState)
| 71 | |
| 72 | func (c *ExtractionController) Schedule(_ context.Context, state *AgentState, _ string) bool { |
| 73 | if !c.ShouldExtract(state) { |
| 74 | return false |
| 75 | } |
| 76 | payload := c.incrementalFabricContext(state) |
| 77 | if len(payload.Messages) == 0 { |
| 78 | c.advanceFabricCursor(payload) |
| 79 | return false |
| 80 | } |
| 81 | |
| 82 | c.mu.Lock() |
| 83 | if c.currentRunning { |
| 84 | c.pendingContext = payload |
| 85 | c.mu.Unlock() |
| 86 | return false |
| 87 | } |
| 88 | runCtx, cancel := context.WithCancel(context.Background()) |
no outgoing calls