apupier commented on code in PR #30711:
URL: https://github.com/apache/camel/pull/30711#discussion_r4680594237
##########
components/camel-ai/camel-semantic/src/main/java/org/apache/camel/semantic/SemanticEvaluateConsole.java:
##########
@@ -147,6 +193,9 @@ protected Map<String, Object> doCallJson(Map<String,
Object> options) {
if (task != null && !task.isDone()) {
task.cancel(true);
}
+ if (acquired && claimed.compareAndSet(false, true)) {
Review Comment:
Addressed in edf6d03a: In the `finally` block, if `task instanceof Runnable
r && executor instanceof ThreadPoolExecutor tpe`, `tpe.remove(r)` is called to
immediately purge the cancelled `FutureTask` from the executor queue.
_Claude Code on behalf of apupier_
--
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]