Skip to content

Commit

Permalink
make sure increment before schedule
Browse files Browse the repository at this point in the history
Signed-off-by: Kaituo Li <[email protected]>
  • Loading branch information
kaituo committed Oct 24, 2024
1 parent 64da191 commit 2b497b9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,16 +229,16 @@ class PageListener implements ActionListener<CompositeRetriever.Page> {

@Override
public void onResponse(CompositeRetriever.Page entityFeatures) {
// Increment pagesInFlight to track the processing of this page
pagesInFlight.incrementAndGet();

// start processing next page after sending out features for previous page
if (pageIterator.hasNext()) {
pageIterator.next(this);
} else if (config.getImputationOption() != null) {
scheduleImputeHCTask();
}

// Increment pagesInFlight to track the processing of this page
pagesInFlight.incrementAndGet();

if (entityFeatures != null && false == entityFeatures.isEmpty()) {
LOG
.info(
Expand Down

0 comments on commit 2b497b9

Please sign in to comment.