multica-ai/multica · error
cancel task: %w
Error message
cancel task: %w
What it means
Error "cancel task: %w" thrown in multica-ai/multica.
Source
Thrown at server/cmd/multica/cmd_issue.go:2304
defer cancel()
issueScope := ""
if issueInput, _ := cmd.Flags().GetString("issue"); issueInput != "" {
issueRef, err := resolveIssueRef(ctx, client, issueInput)
if err != nil {
return fmt.Errorf("resolve issue: %w", err)
}
issueScope = issueRef.ID
}
taskRef, err := resolveTaskRunID(ctx, client, issueScope, args[0])
if err != nil {
return fmt.Errorf("resolve task run: %w", err)
}
var result map[string]any
path := "/api/tasks/" + url.PathEscape(taskRef.ID) + "/cancel"
if err := client.PostJSON(ctx, path, map[string]any{}, &result); err != nil {
return fmt.Errorf("cancel task: %w", err)
}
output, _ := cmd.Flags().GetString("output")
if output == "json" {
return cli.PrintJSON(os.Stdout, result)
}
status := strVal(result, "status")
if status == "" {
status = "cancelled"
}
fmt.Fprintf(os.Stdout, "Task %s -> status=%s\n", taskRef.ID, status)
return nil
}
func runIssueSearch(cmd *cobra.Command, args []string) error {
client, err := newAPIClient(cmd)
if err != nil {
return errView on GitHub (pinned to 2c0912b6ec)
Solutions
- Verify the task is still running before cancelling.
When it happens
Trigger: Thrown at server/cmd/multica/cmd_issue.go:2304 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/b87d0b966d2d9e00.
Report an issue: GitHub.