Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

注解定义任务 shardingTotalCount 值一致不变,用的默认值1 #40

Open
zxlxgd opened this issue Jan 4, 2021 · 1 comment

Comments

@zxlxgd
Copy link

zxlxgd commented Jan 4, 2021

@ElasticJobConf(name = "MySimpleJob", cron = "0/10 * * * * ?", shardingTotalCount = 2, shardingItemParameters = "0=0,1=1", description = "简单任务")

System.out.println("分片参数:" + shardParamter);

分片参数 一直是1

@zxlxgd
Copy link
Author

zxlxgd commented Jan 4, 2021

找到问题原因了:overwrite = true 才可以覆盖新的配置,要不然一直取得第一次写入zk的 配置,哈哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant