exceptionfactory commented on code in PR #9873:
URL: https://github.com/apache/nifi/pull/9873#discussion_r2039898554
##########
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:
Instead of having the nested conditional, can the `while` condition be
changed to `while (isScheduled())`?
--
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]