Skip to content

Commit

Permalink
Merge pull request #262 from yanyanho/dev
Browse files Browse the repository at this point in the history
down the frenqucy of schedule task
  • Loading branch information
yanyanho committed Jul 5, 2024
2 parents b51e02e + ef78f45 commit e7b7cef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 --------------------- ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 --------------------- ");
Expand Down

0 comments on commit e7b7cef

Please sign in to comment.