Fetch the repository succeeded.
基于 Spring Boot 2.0 + Spring Task + Zookeeper 的分布式任务调度组件,非常轻量级,使用简单,只需要引入jar包,不需要单独部署服务端。确保所有任务在集群中不重复,不遗漏的执行。
TarocoSchedulerAutoConfiguration
。只需要引入jar包依赖,无须显示的添加配置类扫描。@Scheduled
注解的任务, 以及 xml 配置的定时任务),会自动纳入集群做统一分配执行。一般情况下我们只需要指定 zookeeper 的地址即可:
taroco:
scheduler:
zk:
url: 127.0.0.1:2181
如果需要更多的配置。请参考TarocoSchedulerProperties
配置类。
只需要在 Spring Boot 启动类中添加注解@EnableTarocoSchedulerAdmin
,然后通过访问路径:/taroco/scheduler/task
即可。
注入 bean IScheduleTask
即可实现对任务的增删查改。
注入 bean ISchedulerServer
即可实现对 server 节点的简单查询。
ScheduleServer.getInstance()
Sign in to post a comment
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.
Repository Comments ( 6 )