awelless commented on code in PR #9873:
URL: https://github.com/apache/nifi/pull/9873#discussion_r2039917250


##########
nifi-extension-bundles/nifi-box-bundle/nifi-box-processors/src/main/java/org/apache/nifi/processors/box/ConsumeBoxEnterpriseEvents.java:
##########
@@ -180,12 +180,23 @@ private String retrieveLatestStreamPosition() {
     @Override
     public void onTrigger(final ProcessContext context, final ProcessSession 
session) throws ProcessException {
         while (true) {
+            if (!isScheduled()) {

Review Comment:
   The reason for the condition is to provide a reason why we stopped further 
processing. Similar to when `eventLog.getSize() == 0`



-- 
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: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to