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

Method taskRunAction

internal/cli/client.go:5280–5292  ·  view source on GitHub ↗
(
	ctx context.Context,
	id string,
	action string,
	requestBody any,
)

Source from the content-addressed store, hash-verified

5278}
5279
5280func (c *unixSocketClient) taskRunAction(
5281 ctx context.Context,
5282 id string,
5283 action string,
5284 requestBody any,
5285) (TaskRunRecord, error) {
5286 var response contract.TaskRunResponse
5287 path := "/api/task-runs/" + url.PathEscape(id) + "/" + action
5288 if err := c.doJSON(ctx, http.MethodPost, path, nil, requestBody, &response); err != nil {
5289 return TaskRunRecord{}, err
5290 }
5291 return response.Run, nil
5292}
5293
5294func (c *unixSocketClient) forceTaskRunAction(
5295 ctx context.Context,

Callers 6

ClaimTaskRunMethod · 0.95
StartTaskRunMethod · 0.95
AttachTaskRunSessionMethod · 0.95
CompleteTaskRunMethod · 0.95
FailTaskRunMethod · 0.95
CancelTaskRunMethod · 0.95

Calls 1

doJSONMethod · 0.95

Tested by

no test coverage detected