apache / shardingsphere-elasticjob

Distributed scheduled job
Apache License 2.0
8.1k stars 3.28k forks source link

Cron expression exception #2097

Closed wrj15034011352 closed 1 week ago

wrj15034011352 commented 2 years ago

Which version of ElasticJob did you use?

  <dependency>
        <groupId>org.apache.shardingsphere.elasticjob</groupId>
        <artifactId>elasticjob-lite-spring-boot-starter</artifactId>
        <version>3.0.1</version>
    </dependency>

Which project did you use? ElasticJob-Lite or ElasticJob-Cloud?

ElasticJob-Lite

Expected behavior And Actual behavior

I configured the task to be executed every 5S, but it is actually executed every 20s

elasticjob: regCenter: serverLists: 192.168.1.57:2181 namespace: elasticjob-lite-springboot jobs: simpleJob: elasticJobClass: com.example.elasticjobdemo.job.MySimpleJob cron: /5 ? * timeZone: GMT+08:00 shardingTotalCount: 1 overwrite: true server: port: 9000

image

image

zhangzc0419 commented 2 years ago

check your registration center task config, maybe not overwrited

qianweiming commented 1 year ago

I also have this problem

BinLee218 commented 1 year ago

I also have this problem

linghengqian commented 10 months ago
linghengqian commented 1 week ago

Closed due to lack of reproducible unit tests and no response.