kfaraz commented on PR #16616: URL: https://github.com/apache/druid/pull/16616#issuecomment-2174882134
> I needed a way to get the time spent by a task in the queue before execution. Yes, I suspected this was the motivation, 🙂 . > Can you suggest how to achieve that without adding a wrapper? Do the same thing, just not in the wrapper, i.e. in `S3UploadManager.queueChunkForUpload()`, start a `Stopwatch` and inside the submitted lambda, determine the queued duration just before calling `RetryUtils.retry()`. To determine queue size, you can keep an `AtomicInteger` which is incremented in the first line of `queueChunkForUpload()` and decremented inside the submitted lambda. Hope that helps! -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
