Skip to content

Add workflows cancel for a single in-flight run - #2

Merged
fatwang2 merged 1 commit into
mainfrom
claude/project-thread-bjdc89
Oct 14, 2026
Merged

fatwang2 merged 1 commit into
mainfrom
claude/project-thread-bjdc89

Conversation

@fatwang2

Copy link
Copy Markdown
Member

Requested by fatwang2 · project thread

Before: the CLI had no way to stop one workflow run; only pause/resume/archive of the whole workflow.

After: mailly workflows cancel <workflow-key> <run-id> --reason <text> [--json] cancels one queued, running or waiting run. Cancelling a run that already ended reports that nothing changed. mailly workflows run text output now also prints the run log (time, step, action, outcome, reason), so the cancellation is visible without --json.

How: new cancelWorkflowRun client method calling POST /workflows/{key}/runs/{runId}/cancel, command registration, and a note in docs/commands.zh-CN.md. The skill is not changed yet; it gets updated after the server endpoint is deployed. Merge after the server change ships. npm test passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01JGh6QVHzUERqhasWekD79H


Generated by Claude Code

`mailly workflows cancel <workflow-key> <run-id> --reason <text>` stops one
queued, running or waiting run. `workflows run` now also prints the run log,
so the cancellation, its reason and time are visible in text output.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JGh6QVHzUERqhasWekD79H
@fatwang2 fatwang2 self-assigned this Oct 14, 2026
@fatwang2
fatwang2 marked this pull request as ready for review October 14, 2026 23:53
@fatwang2
fatwang2 merged commit f5fc1d3 into main Oct 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants