Commit 72e0b9f0 by fz

1.定时任务时间间隔修改

1 parent 566d9ae7
...@@ -16,7 +16,7 @@ import org.springframework.stereotype.Component; ...@@ -16,7 +16,7 @@ import org.springframework.stereotype.Component;
*/ */
@Slf4j @Slf4j
@Component @Component
@ElasticSimpleJob(jobName = "TimerTriggerAllJob",cron="0/10 * * * * ?") @ElasticSimpleJob(jobName = "TimerTriggerAllJob",cron="1/59 * * * * ?")
public class TimerTriggerAllJob implements SimpleJob { public class TimerTriggerAllJob implements SimpleJob {
@Autowired @Autowired
private SceneService sceneComponent; private SceneService sceneComponent;
......
...@@ -15,7 +15,7 @@ import org.springframework.stereotype.Component; ...@@ -15,7 +15,7 @@ import org.springframework.stereotype.Component;
*/ */
@Slf4j @Slf4j
@Component @Component
@ElasticSimpleJob(jobName = "TimerTriggerAnyJob", cron = "0/10 * * * * ?") @ElasticSimpleJob(jobName = "TimerTriggerAnyJob", cron = "1/59 * * * * ?")
public class TimerTriggerAnyJob implements SimpleJob { public class TimerTriggerAnyJob implements SimpleJob {
@Autowired @Autowired
private SceneService sceneComponent; private SceneService sceneComponent;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!