Skip to content

fix(run): don't fast fail on task exits after ctrl+c - #1024

Open
ViktorRingnes wants to merge 2 commits into
voidzero-dev:mainfrom
ViktorRingnes:fix/ctrl-c-no-fast-fail
Open

ViktorRingnes wants to merge 2 commits into
voidzero-dev:mainfrom
ViktorRingnes:fix/ctrl-c-no-fast-fail

Conversation

@ViktorRingnes

@ViktorRingnes ViktorRingnes commented Nov 26, 2026 •

Copy link
Copy Markdown

Motivation

vp run --parallel would send SIGINT to every task if you press Ctrl+c, and most tools exit with 130 when that happens. viteplus treats each tasks's 130 as a failure, which means it fast failed and SIGKILLed the tasks that were still cleaning up instead of letting them shutdown gracefully.

Part of voidzero-dev/vite-plus#3581.

Changes

If a run was already cancelled by Ctrl+C, a failing task will no longer trigger a fast fail so that other tasks get to finish shutting down.

I also gave vtt exit-on-ctrlc an optional cleanup delay and exit code so I could write an e2e test for it: one task exits 130 right away, the other takes a second to clean up, and the test checks it actually gets to finish. Added a line about it in docs/cancellation.md too.

@ViktorRingnes
ViktorRingnes marked this pull request as ready for review November 26, 2026 11:20

This branch has not been deployed

No deployments
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.

1 participant