davsclaus commented on PR #15496: URL: https://github.com/apache/camel/pull/15496#issuecomment-2373310128
> We can expose beforeExecute/afterExecute from `ThreadPoolExecutor` that should make this easier. And its also more correct as these callbacks are invoked just before the runnable is being executed by the current thread. > > Then we can find a nicer way to do this without having to wrap every thread pool executor implementation in Camel. One caveat with that is the before and after is executed when the task is being processed, and the original thread that added the task may be doing something else, and the need for this context propagation may be too late. However this would only be in cases where the thread pool is busy and tasks and filled up in the backlog queue. -- 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]
