Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2954 from gardusig/ack-task-poll-batch
Browse files Browse the repository at this point in the history
Add an ack request for each task polled from queue, when polling in batches
  • Loading branch information
apanicker-nflx committed May 2, 2022
2 parents 473ed87 + a13706f commit 309afc6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ public List<Task> poll(
}
executionDAOFacade.updateTaskLastPoll(taskType, domain, workerId);
Monitors.recordTaskPoll(queueName);
tasks.stream().forEach(task -> ackTaskReceived(task));
return tasks;
}

Expand Down

0 comments on commit 309afc6

Please sign in to comment.