账单-mq-定时任务-限制单次重试数量
This commit is contained in:
@@ -24,7 +24,7 @@ public class BillTask extends BaseTask {
|
||||
@Scheduled(cron = "0 */5 * * * ?")
|
||||
public void retryBillQueue() {
|
||||
log.info("retryBillQueue start ...");
|
||||
Map<String, BillMessage> map = billMessageService.getRecordMessMap().readAllMap();
|
||||
Map<String, BillMessage> map = billMessageService.getRecordMessMap().randomEntries(20000);
|
||||
if (CollectionUtils.isEmpty(map)) {
|
||||
return;
|
||||
}
|
||||
|
@@ -46,7 +46,7 @@ public class BravoTask {
|
||||
@Scheduled(cron = "0 */5 * * * ?")
|
||||
public void retryBravoQueue() {
|
||||
log.info("retryBravoQueue start ...");
|
||||
Map<String, String> map = jedisService.hgetAll(RedisKey.lucky_24_status.getKey());
|
||||
Map<String, String> map = jedisService.hgetAll(RedisKey.bravo_status.getKey());
|
||||
if (map == null || map.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user