Skip to content

feat(util): support stop-on-failure execution for indexed tasks - #1183

Draft
wgtmac wants to merge 1 commit into
apache:mainfrom
wgtmac:codex/task-group-stop-on-failure
Draft

wgtmac wants to merge 1 commit into
apache:mainfrom
wgtmac:codex/task-group-stop-on-failure

Conversation

@wgtmac

@wgtmac wgtmac commented Nov 27, 2026

Copy link
Copy Markdown
Member

Motivation

Manifest planning needs to stop starting work after an index fails, while keeping the caller's state alive until already accepted work finishes. This is the task-execution change extracted from #1115.

Changes

Add an internal indexed runner for serial and executor-backed tasks. It skips pending indices after a failure, drains accepted tasks and translates exceptions into errors. Existing TaskGroup entry points continue to run all tasks and aggregate their errors.

Validation

Built and ran the full util_test target on this branch, including a throwing task and an executor that throws after accepting an earlier task. Pre-commit and git diff --check passed.

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