Repository navigation
Add workflows cancel for a single in-flight run - #2
Merged
Merged
Conversation
`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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 runtext output now also prints the run log (time, step, action, outcome, reason), so the cancellation is visible without--json.How: new
cancelWorkflowRunclient method callingPOST /workflows/{key}/runs/{runId}/cancel, command registration, and a note indocs/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 testpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01JGh6QVHzUERqhasWekD79H
Generated by Claude Code