MCPcopy Create free account
hub / github.com/compozy/agh / GetTaskEventRecord

Method GetTaskEventRecord

internal/task/manager_test.go:170–182  ·  view source on GitHub ↗
(
	ctx context.Context,
	eventID string,
)

Source from the content-addressed store, hash-verified

168}
169
170func (s *contextSensitiveEventStore) GetTaskEventRecord(
171 ctx context.Context,
172 eventID string,
173) (EventRecord, error) {
174 s.getTaskEventRecordCanceled = append(
175 s.getTaskEventRecordCanceled,
176 ctx != nil && ctx.Err() != nil,
177 )
178 if ctx != nil && ctx.Err() != nil {
179 return EventRecord{}, ctx.Err()
180 }
181 return s.inMemoryManagerStore.GetTaskEventRecord(ctx, eventID)
182}
183
184func (s *contextSensitiveRunStore) UpdateTaskRun(ctx context.Context, run Run) error {
185 if ctx != nil && ctx.Err() != nil {

Callers

nothing calls this directly

Calls 3

appendFunction · 0.85
GetTaskEventRecordMethod · 0.65
ErrMethod · 0.45

Tested by

no test coverage detected