Skip to content

#473 - Make the process fail when the error branch of a task failing with the stop strategy stops - #474

Merged
njoubert-cleverage merged 1 commit into
mainfrom
473
Nov 6, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
473

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #473:

  • ProcessManager::process(): when the error branch of a task failing with the stop strategy stops (StopTask, ProcessState::stop()), the loop of the error outputs is left and the ProcessFailedException is thrown (cleverage_process.fail, a parent process fails too), instead of returning as a stopped process;
  • the skip strategy with an error branch ending on a stop is unchanged ("Stop the process on the first invalid item");
  • 04-advanced_workflow.md, stop_task.md, UPGRADE: to keep a voluntary stop, use error_strategy: skip.

Checked locally: highest dependencies (PHP 8.5.12), with pcov coverage: all tests OK, no risky; PHPStan, PHP-CS-Fixer and Rector OK.

Requirements

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

Breaking changes

A process that ended as succeeded or stopped while one of its tasks failed with the stop strategy now fails, as documented (see UPGRADE).

🤖 Generated with Claude Code

…with the stop strategy stops

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 d3ba4df 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.

A failure with the stop strategy is swallowed when its error branch stops the process

1 participant