[ 
https://issues.apache.org/jira/browse/CAMEL-25391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-25391.
---------------------------------
    Resolution: Fixed

Merged in https://github.com/apache/camel/pull/27914 (commit 5186b4b03f5b): one 
ProcessFinder finds the running integrations by name or pid 
(requireOne/requireAny exit 3 when nothing matches; a pid must be a running 
Camel integration), one ActionClient talks to them (request files from Camel 
4.21, the shared action file before; OK, ERROR with not-found, TIMEOUT and 
UNCONFIRMED as exit codes 0, 1, 3 and 124), and --timeout takes millis or a 
duration such as 30s.

_Claude Code on behalf of davsclaus (Claus Ibsen)_

> camel-jbang - ActionClient, ProcessFinder and shared --timeout
> --------------------------------------------------------------
>
>                 Key: CAMEL-25391
>                 URL: https://issues.apache.org/jira/browse/CAMEL-25391
>             Project: Camel
>          Issue Type: Sub-task
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 4.24.0
>
>
> * {{ActionClient.execute(pid, action, configure, timeout)}} returning 
> {{ActionResult\{OK|ERROR|TIMEOUT\}}}; uses request-id action files 
> ({{<pid>-action-<id>.json}}), falls back to the legacy shared file for 
> integrations older than 4.21 (based on the version in the status file). 
> Replaces {{getJsonObject}}, {{prepareAction}} and the private 
> {{waitForOutputFile}} copies; {{RuntimeHelper.executeAction}} delegates to it.
> * Missing ack: integrations 4.24+ -> exit 4; older -> warning "sent, not 
> confirmed", exit 0.
> * {{ProcessFinder}} replaces the 6 {{findPids}} copies and 
> {{RuntimeHelper.discoverProcesses}}: numeric pid requires a live Camel status 
> file; {{requireOne}} (0 or >1 match -> exit 3 with message listing the pids); 
> {{findAll}} (explicit name, no match -> exit 3); skip integrations in phase 
> >= 9.
> * Shared {{--timeout}} on commands talking to a running integration, parsed 
> with {{TimeUtils.toMilliSeconds}} (bare number = millis, so existing 
> {{--timeout=20000}} is unchanged; {{30s}} accepted). {{cmd sql 
> --query-timeout}} keeps seconds.
> _Claude Code on behalf of davsclaus (Claus Ibsen)_



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to