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

关于重复提交会引发Double Worker 的问题 #22

Open
lijiang2014 opened this issue Jan 23, 2017 · 0 comments
Open

关于重复提交会引发Double Worker 的问题 #22

lijiang2014 opened this issue Jan 23, 2017 · 0 comments

Comments

@lijiang2014
Copy link
Owner

一次用户的故障,分析发现原因是重复提交了,引发了一系列的逻辑错误。

如何避免用户的重复提交呢 ?

可以在进入程序的主逻辑前进行下判断。 如果之前的任务还在进行(redis 数据库可访问 , 辅助其他判断),则直接退出此次任务 。

引入失败率,如果大部分任务(80% ?)都失败了 , 直接退出 , 只针对普通作业。

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