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

多调度器部署存在多次执行风险 #98

Open
hulu20 opened this issue Mar 8, 2022 · 0 comments
Open

多调度器部署存在多次执行风险 #98

hulu20 opened this issue Mar 8, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@hulu20
Copy link

hulu20 commented Mar 8, 2022

经过多次测试

  1. 如果每个调度器的时间不一致,会存在多次执行的风险
  2. 如果脚本执行的时间过短,如10ms内执行完成,也会存在多次执行风险

一个想法
crocodile_host 表添加一个调度器ip的字段,任务运行根据匹配调度器ip来决定是否运行任务(需取消redis 锁控制),调度器ip字段由客户端注册来维护

@hulu20 hulu20 added the bug Something isn't working label Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant