清除冗余定时任务

This commit is contained in:
tianfeng 2025-12-18 10:21:21 +08:00
parent 3b5dfb54cc
commit d32b6d5789

View File

@ -32,8 +32,8 @@ public class TeamSalaryPaymentTask {
/** /**
* 每天凌晨0点过30秒执行一次处理团队工资结算. * 每天凌晨0点过30秒执行一次处理团队工资结算.
*/ */
@Scheduled(cron = "30 1 0 * * ?", zone = "Asia/Riyadh") // @Scheduled(cron = "30 1 0 * * ?", zone = "Asia/Riyadh")
@TaskCacheLock(key = "TEAM_SALARY_PAYMENT_TASK", expireSecond = 10800) // @TaskCacheLock(key = "TEAM_SALARY_PAYMENT_TASK", expireSecond = 10800)
public void teamSalaryPaymentTask() { public void teamSalaryPaymentTask() {
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();
log.warn("exec team_salary_payment_task start"); log.warn("exec team_salary_payment_task start");
@ -98,8 +98,8 @@ public class TeamSalaryPaymentTask {
/** /**
* 每月凌晨0点过30秒执行一次,处理超出政策后的剩余目标兑换美元操作. * 每月凌晨0点过30秒执行一次,处理超出政策后的剩余目标兑换美元操作.
*/ */
@Scheduled(cron = "40 1 0 1 * ?", zone = "Asia/Riyadh") // @Scheduled(cron = "40 1 0 1 * ?", zone = "Asia/Riyadh")
@TaskCacheLock(key = "TEAM_EXCHANGE_SURPLUS_TARGET_TASK", expireSecond = 10800) // @TaskCacheLock(key = "TEAM_EXCHANGE_SURPLUS_TARGET_TASK", expireSecond = 10800)
public void teamExchangeSurplusTargetTask() { public void teamExchangeSurplusTargetTask() {
long startTime = System.currentTimeMillis(); long startTime = System.currentTimeMillis();
log.info("exec team_exchange_surplus_target_task start"); log.info("exec team_exchange_surplus_target_task start");