Skip to content

fix: wait for running tasks after first failure - #199

Merged
luojiyin1987 merged 1 commit into
masterfrom
fix/wait-for-running-tasks-on-failure
Oct 14, 2026
Merged

luojiyin1987 merged 1 commit into
masterfrom
fix/wait-for-running-tasks-on-failure

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

What changed

runTasksWithLimit() now records the first error and stops new task dispatch.
It waits for all started tasks before it rejects.
Tests cover blocked tasks, stopped dispatch, and first error propagation.

Why

Promise.all() returned on the first failure while other tasks still ran.
This could make batchLint() destroy its pool before tasks ended.
It could also make runFileLint() report a write failure before other writes ended.

Verification

  • npm run lint passed.
  • npm test -- --runInBand passed: 26 suites and 226 tests.
  • git diff --check passed.

Redactions

No sensitive data was included.

Closes #198

@luojiyin1987
luojiyin1987 merged commit 41aa6b7 into master Oct 14, 2026
5 checks passed
@luojiyin1987
luojiyin1987 deleted the fix/wait-for-running-tasks-on-failure branch October 14, 2026 15:32
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.

Wait for started tasks after a concurrent failure

1 participant