Skip to content

#499 - process_launcher: a stopped process does not wait for the sub-processes - #500

Merged
njoubert-cleverage merged 1 commit into
mainfrom
499
Nov 6, 2026
Merged

njoubert-cleverage merged 1 commit into
mainfrom
499

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #499:

  • ProcessLauncherTask::flush() / next(): when the process has been stopped (ProcessHistory::isStopped(), set by a StopTask), the task no longer waits for the running sub-processes in its flush (skipped, flush mode left): finalize() stops them together (SIGTERM, then SIGKILL after 5 seconds, process_launcher: the sub-processes are stopped one after the other, up to 5 seconds each #459) and logs the warning, as documented;
  • a stop of a flow only (ProcessState::stop() without StopTask) does not stop the process: the flush still waits, as before;
  • process_launcher_task.md.

Checked locally: highest dependencies (PHP 8.5.12), with pcov coverage: all tests OK, no risky; PHPStan, PHP-CS-Fixer and Rector OK. In the demo project (pcntl), 4 sub-processes running sleep 30 and a StopTask downstream: 9 s and the warning "4 sub-process(es) still running ... have been stopped", 32 s without this PR.

Requirements

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

Breaking changes

None: the documented behaviour.

🤖 Generated with Claude Code

…processes

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 15:42
@njoubert-cleverage
njoubert-cleverage merged commit c547d45 into main Nov 6, 2026
17 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.

process_launcher waits for its sub-processes when the process is stopped by a StopTask

1 participant