From ef78f4505b1851215ce16b4a952b43fa3a49635f Mon Sep 17 00:00:00 2001 From: yanyanho Date: Fri, 5 Jul 2024 10:23:17 +0800 Subject: [PATCH] down the frenqucy of schedule task --- .../java/com/dl/officialsite/distributor/DistributeService.java | 2 +- .../java/com/dl/officialsite/redpacket/RedPacketService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/dl/officialsite/distributor/DistributeService.java b/src/main/java/com/dl/officialsite/distributor/DistributeService.java index de17a530..8ed99170 100644 --- a/src/main/java/com/dl/officialsite/distributor/DistributeService.java +++ b/src/main/java/com/dl/officialsite/distributor/DistributeService.java @@ -104,7 +104,7 @@ public class DistributeService { @Resource private MerkleDistributorConfig merkleDistributorConfig; - @Scheduled(cron = "${jobs.distribute.corn:0/10 * * * * ?}") + @Scheduled(cron = "${jobs.distribute.corn:0/30 * * * * ?}") @ConditionalOnProperty(name = "scheduler.enabled", havingValue = "true", matchIfMissing = true) public void updateDistributeStatus() { log.info("schedule task begin --------------------- "); diff --git a/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java b/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java index 10904583..f91525c1 100644 --- a/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java +++ b/src/main/java/com/dl/officialsite/redpacket/RedPacketService.java @@ -47,7 +47,7 @@ public class RedPacketService { public CloseableHttpClient httpClient = HttpClients.createDefault(); - @Scheduled(cron = "${jobs.redpacket.corn:0/10 * * * * ?}") + @Scheduled(cron = "${jobs.redpacket.corn:0/30 * * * * ?}") @ConditionalOnProperty(name = "scheduler.enabled", havingValue = "true", matchIfMissing = true) public void updateRedpacketStatus() { log.info("schedule task begin --------------------- ");