apache / shardingsphere-elasticjob

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

cron expression parsing exception #2071

Open houzhitongxue opened 2 years ago

houzhitongxue commented 2 years ago

cron expression: "0 0 0 1 * ?" parsing exception, not executed on the first of every month, help to confirm!!!

TeslaCN commented 2 years ago

Could you show us the configurations and logs?

houzhitongxue commented 2 years ago

server: port: 9999 spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver hikari: connection-test-query: SELECT 1 connection-timeout: 30000 idle-timeout: 30000 max-lifetime: 1800000 maximum-pool-size: 25 minimum-idle: 10 pool-name: ScHikariCP password: xxxx type: com.zaxxer.hikari.HikariDataSource username: root url: xxxx type-aliases-package: com.szgx.saas.admin.service.dao.po.mysql mapper-locations: classpath:mapper/*.xml

elasticjob: tracing: type: RDB regCenter: serverLists: xxxx:2181 namespace: saas-jobs session-timeout-milliseconds: 60000 connection-timeout-milliseconds: 60000 max-retries: 5 jobs: wehcatExecuteHistoryTaskJob: elasticJobClass: com.szgx.saas.jobs.jobs.WehcatExecuteHistoryTaskJob cron: 0 0 0 1 * ? shardingTotalCount: 1

houzhitongxue commented 2 years ago

server: port: 9999 spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver hikari: connection-test-query: SELECT 1 connection-timeout: 30000 idle-timeout: 30000 max-lifetime: 1800000 maximum-pool-size: 25 minimum-idle: 10 pool-name: ScHikariCP password: xxxx type: com.zaxxer.hikari.HikariDataSource username: root url: xxxx type-aliases-package: com.szgx.saas.admin.service.dao.po.mysql mapper-locations: classpath:mapper/*.xml

elasticjob: tracing: type: RDB regCenter: serverLists: xxxx:2181 namespace: saas-jobs session-timeout-milliseconds: 60000 connection-timeout-milliseconds: 60000 max-retries: 5 jobs: wehcatExecuteHistoryTaskJob: elasticJobClass: com.szgx.saas.jobs.jobs.WehcatExecuteHistoryTaskJob cron: 0 0 0 1 * ? shardingTotalCount: 1

Could you show us the configurations and logs?

server: port: 9999 spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver hikari: connection-test-query: SELECT 1 connection-timeout: 30000 idle-timeout: 30000 max-lifetime: 1800000 maximum-pool-size: 25 minimum-idle: 10 pool-name: ScHikariCP password: xxxx type: com.zaxxer.hikari.HikariDataSource username: root url: xxxx type-aliases-package: com.szgx.saas.admin.service.dao.po.mysql mapper-locations: classpath:mapper/*.xml

elasticjob: tracing: type: RDB regCenter: serverLists: xxxx:2181 namespace: saas-jobs session-timeout-milliseconds: 60000 connection-timeout-milliseconds: 60000 max-retries: 5 jobs: wehcatExecuteHistoryTaskJob: elasticJobClass: com.szgx.saas.jobs.jobs.WehcatExecuteHistoryTaskJob cron: 0 0 0 1 * ? shardingTotalCount: 1

houzhitongxue commented 2 years ago

0 0 0 1 * ?

Could you show us the configurations and logs?

Could you show us the configurations and logs?

Can you test whether the cron parses the "0 0 0 1 * ?" expression normally?