Skip to content

#333 - ProcessManager: restore the previous task configuration after a child task or a sub-process - #334

Merged
njoubert-cleverage merged 2 commits into
mainfrom
333
Oct 23, 2026
Merged

njoubert-cleverage merged 2 commits into
mainfrom
333

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #333.

  • process(), initialize() and finalize() restore the previous task configuration when they end (early returns included) instead of setting it to null: an iterable task keeps its task configuration for its next items after its child tasks.
  • execute() restores the task configuration of the parent process, as the process history (ProcessManager: process history not restored after a failed process, and not reset between executions #301): the logs of a parent process are no longer attributed to a task of its sub-process.
  • When a task fails, it stays the current task configuration until execute() ends, so that the logs and the ProcessEvent::EVENT_PROCESS_FAILED listeners of the failure still see it.
  • New ProcessManagerTaskConfigurationTest.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None.

🤖 Generated with Claude Code

njoubert-cleverage and others added 2 commits October 22, 2026 17:12
… task, an initialization, a finalization or a sub-process ends, so that the logs of an iterable task keep their task after its first item and the logs of a parent process are no longer attributed to a task of its sub-process. Add tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage merged commit ebe9246 into main Oct 23, 2026
18 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.

ProcessManager: the task configuration used by the logs is not restored after a child task or a sub-process

1 participant