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

Method logTaskBlockEventFailure

internal/task/block_service.go:185–194  ·  view source on GitHub ↗
(err error, eventType string, block TaskBlock, runID string)

Source from the content-addressed store, hash-verified

183}
184
185func (m *Service) logTaskBlockEventFailure(err error, eventType string, block TaskBlock, runID string) {
186 slog.Error(
187 "task: task block event failed after committed mutation",
188 "error", err,
189 "event_type", eventType,
190 "task_id", block.TaskID,
191 "run_id", strings.TrimSpace(runID),
192 "block_id", block.ID,
193 )
194}
195
196func (m *Service) requireAgentSessionTaskLease(ctx context.Context, taskID string, actor ActorContext) error {
197 if actor.Actor.Kind.Normalize() != ActorKindAgentSession {

Callers 3

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected