Skip to content

#477 - End as stopped a process stopped by the error branch of a finalizable task - #478

Merged
njoubert-cleverage merged 2 commits into
mainfrom
477
Nov 6, 2026
Merged

njoubert-cleverage merged 2 commits into
mainfrom
477

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #477:

  • ProcessManager::finalize() handles the state of a task only when its exception changed during the finalization (finalize() threw, or called stop($exception)): the error of a skipped item, kept by the state, is no longer taken for a finalization failure;
  • a failing finalize() still makes the process fail.

Checked locally: highest dependencies (PHP 8.5.12), with pcov coverage: all tests OK, no risky; PHPStan, PHP-CS-Fixer and Rector OK. In the demo project, a csv_reader with error_strategy: skip and an error branch ending on a stop now ends as stopped.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

None: the documented behaviour.

🤖 Generated with Claude Code

…lizable task

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage requested a review from a team as a code owner November 6, 2026 13:13
@njoubert-cleverage
njoubert-cleverage merged commit b88c006 into main Nov 6, 2026
17 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.

The documented "Stop the process on the first invalid item" ends as failed with a finalizable task

1 participant