davsclaus opened a new pull request, #24596:
URL: https://github.com/apache/camel/pull/24596

   ## Summary
   
   _Claude Code on behalf of davsclaus_
   
   - **Fix ambiguous name matching**: `findPids` in `ActionBaseCommand` now 
checks `context.phase` from the status JSON and skips entries with phase >= 9 
(Terminated). This prevents stale launcher processes from exported runtimes 
(spring-boot/quarkus) from matching alongside the real application process.
   - **Fix exit code**: `showStatus` in `CamelSendAction` changed from `void` 
to `int`, returning 1 on timeout, failed, or error status. `doCall(name)` now 
propagates this exit code instead of hardcoding `return 0`.
   
   Fixes: https://issues.apache.org/jira/browse/CAMEL-24002
   
   ## Test plan
   
   - [ ] Run `camel run route.yaml --runtime=spring-boot --name=test` and 
verify `camel ps` shows Terminated + Running entries
   - [ ] Run `camel cmd send test --endpoint=direct:foo --body=hello` and 
verify it targets only the Running process
   - [ ] Verify `echo $?` returns non-zero on send timeout or failure
   - [ ] Verify `echo $?` returns 0 on successful send
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   Co-Authored-By: Claude Opus 4.6 <[email protected]>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to