-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
增加前置和后置任务 #2
Comments
由于各个任务是分布式的,由于各个服务器有时间差,无法保证主节点一定最先执行。
欢迎讨论, |
1、每个任务完成之后写zk,分片任务写多个节点,leader监听父节点,所有任务都完成则设置任务完成的标记位。 |
任务依赖,之前使用quartz自己的listener实现的,前置自动触发后置的 |
有些任务,比如系统间定期数据同步,需要将已有数据清空,然后将新数据导入到系统中,并且前置任务只执行一次(执行前j环境准备)。目前没有相关方法做此工作,建议在任务执行主节点进行任务分配之前或之后由主节点执行相应回调,如init.
The text was updated successfully, but these errors were encountered: