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

调度器故障转移 #69

Open
BennetWang opened this issue Aug 28, 2019 · 4 comments
Open

调度器故障转移 #69

BennetWang opened this issue Aug 28, 2019 · 4 comments

Comments

@BennetWang
Copy link

BennetWang commented Aug 28, 2019

调度器故障转移貌似没有这部分的实现哦。
当前调度器开始调度,执行一半的任务,调度器挂掉了之后,其他调度器抢占任务,但是没有继续执行后续的任务哦。
目前没看到这块代码,是我看漏了吗??方便指出在哪一块吗?

@BennetWang
Copy link
Author

我说的是调度过程的故障。

@TeddiWolf
Copy link
Contributor

当次的JOB是不会继续执行的。因为无法判断当时的TASK执行成功与否。

@BennetWang
Copy link
Author

当次的JOB是不会继续执行的。因为无法判断当时的TASK执行成功与否。

Task的执行应该需要保证幂等性吧。因为你Task的故障转移也无法保证Task执行成功之后一定会返回成功给你。

@BennetWang
Copy link
Author

当次的JOB是不会继续执行的。因为无法判断当时的TASK执行成功与否。

而且在zk里面可以记录当次执行Job实例哪一些Task执行成功了,新接手的调度器可以从后面再往下执行

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

2 participants