MCPcopy
hub / github.com/google/ax / logFailed

Function logFailed

internal/controller/executor/executor.go:179–186  ·  view source on GitHub ↗
(ctx context.Context, el EventLog, execID string, start *proto.AgentStart)

Source from the content-addressed store, hash-verified

177}
178
179func logFailed(ctx context.Context, el EventLog, execID string, start *proto.AgentStart) error {
180 return el.AppendExec(ctx, &proto.ExecutionEvent{
181 Timestamp: timestamppb.Now(),
182 ExecId: execID,
183 AgentId: start.AgentId,
184 State: proto.State_STATE_FAILED,
185 })
186}
187
188func logCompleted(ctx context.Context, el EventLog, execID string, start *proto.AgentStart) error {
189 return el.AppendExec(ctx, &proto.ExecutionEvent{

Callers

nothing calls this directly

Calls 1

AppendExecMethod · 0.65

Tested by

no test coverage detected