exceptionfactory commented on PR #11993:
URL: https://github.com/apache/nifi/pull/11993#issuecomment-7400859572

   Thanks for the reply @takraj.
   
   Adding a property could be a way forward, although naming and description 
could be somewhat challenging.
   
   Going with some kind of `Polling Strategy` or `Polling Method` might convey 
the concept, but also seems somewhat vague in terms of actual behavior impact.
   
   Taking another step back, it seems like the `yield()` approach is attempting 
to balance a run schedule of `0 sec` or something very small. Configuring a 
higher run schedule would reduce trigger, although of course that runs the 
opposite risk of not retrieving records fast enough.
   
   The current API does not provide a way for the Processor to read its 
scheduling configuration, but it makes me wonder whether that might be worth an 
improvement proposal. If the Processor could read its Yield Duration value, 
that could help to determine whether to yield or not.
   
   Tagging @markap14 for further consideration of potential options.


-- 
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]

Reply via email to