Repository navigation
[v6] #380 - Executing a process while it is already running throws an exception - #523
Merged
Merged
Conversation
…ption Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #380 (follow-up of #371): executing a process while it is already running, by itself or through its sub-processes (
A → B → Awithprocess_executor), throws an exception instead of the deprecation of 5.6.RecursiveProcessExecutionException(final, extends theLogicExceptionof 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.ProcessManager::execute(), outside thetry: nostarted/ended/failedevent 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.MissingProcessException).process_executortask, theerror_strategyapplies: withstop(default), the parent processes fail; withskip, the input is skipped.process_launcherruns the process in a separate PHP process: a recursion there is not detected (documented).Checked locally:
make quality, PHPUnit with pcov (1322 tests, no risky).Requirements
Breaking changes
RecursiveProcessExecutionException(it reset the states of the running process, deprecated since 5.6, seeUPGRADE.md).🤖 Generated with Claude Code