Skip to content

[v6] #380 - Executing a process while it is already running throws an exception - #523

Merged
njoubert-cleverage merged 1 commit into
dev-v6from
380
Dec 2, 2026
Merged

njoubert-cleverage merged 1 commit into
dev-v6from
380

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #380 (follow-up of #371): executing a process while it is already running, by itself or through its sub-processes (A → B → A with process_executor), throws an exception instead of the deprecation of 5.6.

  • New RecursiveProcessExecutionException (final, extends the LogicException of the bundle), whose message names the chain: Executing the process "A" while it is already running (A -> B -> A) is not allowed: a process has only one set of task instances and states.
  • The check runs first in ProcessManager::execute(), outside the try: no started / ended / failed event and no critical log for the rejected execution, so a listener (e.g. the UI bundle) does not end the execution of the running process. The running process, its states and the stack of running codes are untouched.
  • An unknown process is never running: it fails as before (start event, failed event, MissingProcessException).
  • An exclusive process executing itself gets this exception before its lock is requested.
  • In a process_executor task, the error_strategy applies: with stop (default), the parent processes fail; with skip, the input is skipped.
  • process_launcher runs the process in a separate PHP process: a recursion there is not detected (documented).
  • Per-execution states are out of scope.

Checked locally: make quality, PHPUnit with pcov (1322 tests, no risky).

Requirements

  • Documentation updates
    • Reference
    • Cookbooks (advanced workflow)
    • Changelog
  • Unit tests

Breaking changes

  • Major: a process executed while it is already running throws a RecursiveProcessExecutionException (it reset the states of the running process, deprecated since 5.6, see UPGRADE.md).

🤖 Generated with Claude Code

…ption

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage requested a review from a team as a code owner December 2, 2026 16:40
@njoubert-cleverage
njoubert-cleverage removed the request for review from a team December 2, 2026 16:42
@njoubert-cleverage
njoubert-cleverage merged commit d748598 into dev-v6 Dec 2, 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.

1 participant