Skip to content

Commit

Permalink
Merge pull request #149 from swisspost/develop
Browse files Browse the repository at this point in the history
PR for release with unit test fix
  • Loading branch information
mcweba authored Jan 15, 2024
2 parents 2d3fe39 + 174788a commit 11a3aef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/org/swisspush/redisques/RedisQues.java
Original file line number Diff line number Diff line change
Expand Up @@ -691,13 +691,17 @@ private void processMessageWithTimeout(final String queue, final String payload,
boolean success;
if (reply.succeeded()) {
success = OK.equals(reply.result().body().getString(STATUS));
dequeueStatistic.get(queue).lastDequeueSuccessTimestamp = System.currentTimeMillis();
dequeueStatistic.get(queue).nextDequeueDueTimestamp = null;
if (success) {
dequeueStatistic.get(queue).lastDequeueSuccessTimestamp = System.currentTimeMillis();
dequeueStatistic.get(queue).nextDequeueDueTimestamp = null;
}
} else {
log.info("RedisQues QUEUE_ERROR: Consumer failed {} queue: {}",
uid, queue, new Exception(reply.cause()));
success = Boolean.FALSE;
}


handler.handle(success);
});
updateTimestamp(queue, null);
Expand Down

0 comments on commit 11a3aef

Please sign in to comment.