bbende commented on PR #9231: URL: https://github.com/apache/nifi/pull/9231#issuecomment-2334809695
@exceptionfactory I actually implemented that way at first and had it working like that, but then I convinced myself that it wasn't really taking advantage of having a blocking queue and by polling the blocking queue we get almost immediate response when something is submitted, as opposed to waiting til the next time the scheduled task runs. Since the interval was only 5 seconds it doesn't really make a big difference so I can go back to the executor if you think it is cleaner. In that case it doesn't really poll the queue, it just calls drainTo to take everything at the time the task runs. -- 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]
