@@ -73,7 +73,6 @@ public class SyncFosterwxTaskEdit {
.eq("task_id", fosterwxTaskSchedule.getTaskId())
.eq("send_date", nowDate)
);
- syncNewFosterwxTask.execute();
} catch (InterruptedException ie) {
Thread.currentThread().interrupt();
}
@@ -39,7 +39,7 @@ public class SyncNewFosterwxTask {
@Autowired
public StringRedisTemplate stringRedisTemplate;
- @Scheduled(cron = "0 */1 * * * ?")
+ @Scheduled(cron = "*/1 * * * * ?")
@SchedulerLock(name = "pangu:SyncNewFosterwxTask", lockAtLeastForString = "PT5S", lockAtMostForString = "PT15M")
public void execute() {
System.out.println("[cronjob]:同步微信养号任务到REDIS");