Skip to content

#485 - Return the last output of the end_point passed on to the next tasks - #486

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

njoubert-cleverage merged 2 commits into
mainfrom
485

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #485:

  • ProcessManager keeps the last output of the end point passed on to its next tasks (a WeakMap indexed by the state of the end point, keeping the deprecated re-execution of a running process): the outputs of skipped, filtered or failed (skip) executions no longer replace it; null when there is none;
  • an end point setting an output then stopping (stop() without error) no longer returns it: it is not passed on;
  • 04-advanced_workflow.md, 01-process_definition.md (end_point).

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

Requirements

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

Breaking changes

The value returned by a process whose last end point execution was ignored changes (it was the ignored value).

🤖 Generated with Claude Code

…tasks

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:14
@njoubert-cleverage
njoubert-cleverage merged commit ce49107 into main Nov 6, 2026
15 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 end_point returns the output of its last execution even when it is ignored (skipped, filtered)

1 participant