I am passing the original DSRequest's requestContext object to the new thread. This same was suggested in this post only.
My code looks like:
Code:
getTaskExecutor().execute(() -> { // boolean value to control whether to mark the job is failed in the finally block boolean exception = true; try { handleCopyAdjusments(spID, uC sPBID, tPBID, tPBName, selectedTab, jobId, originalRequest.getContext());
Leave a comment: