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

作业任务执行时没有报错,但是却执行了多次 #11

Open
CONGRUAN opened this issue Nov 15, 2023 · 4 comments
Open

作业任务执行时没有报错,但是却执行了多次 #11

CONGRUAN opened this issue Nov 15, 2023 · 4 comments

Comments

@CONGRUAN
Copy link

企业微信截图_17000138801052

@nnhy
Copy link
Member

nnhy commented Nov 15, 2023

查一下日志,看是否确实执行了两次。
任务在分派的过程中,做了全局锁避免重复发放。
但是,如果任务分派下去以后,等了很久没有收到任何进度更新,调度中心会任务该任务已经失败,重新分派给其它客户端实例。

最近会更新一个版本,结合星尘监控,快速定位问题。

@nnhy
Copy link
Member

nnhy commented Nov 24, 2023

从耗时数据来看,应该是第一次执行超过了10分钟,中途没有反馈进度,调度中心以为任务已经失败,重新分配。
可以在作业里面修改任务最大执行时间,加大一点。

@CONGRUAN
Copy link
Author

image
并不是执行时间过长的问题,有些执行时间极短的也会有这种情况发生

@nnhy
Copy link
Member

nnhy commented Aug 27, 2024

image 并不是执行时间过长的问题,有些执行时间极短的也会有这种情况发生

这里是第二次执行,把第一次执行的耗时给覆盖了

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