Skip to content

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

Open
njoubert-cleverage wants to merge 1 commit into
mainfrom
333
Open

njoubert-cleverage wants to merge 1 commit 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

… 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>
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