(ctx context.Context, el EventLog, execID string, start *proto.AgentStart)
| 177 | } |
| 178 | |
| 179 | func 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 | |
| 188 | func logCompleted(ctx context.Context, el EventLog, execID string, start *proto.AgentStart) error { |
| 189 | return el.AppendExec(ctx, &proto.ExecutionEvent{ |
nothing calls this directly
no test coverage detected