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

getShardIndex获取到为-1的情况 #3354

Open
pop-lee opened this issue Dec 7, 2023 · 0 comments
Open

getShardIndex获取到为-1的情况 #3354

pop-lee opened this issue Dec 7, 2023 · 0 comments

Comments

@pop-lee
Copy link

pop-lee commented Dec 7, 2023

版本:2.4.0

Steps to reproduce the behavior

在业务系统发布之后,被触发的任务可能会获取到shardIndex为-1(偶发),目前分析来看,猜测可能是之前有正在执行,未完成的任务,而将业务系统重启之后执行了callback,导致将Context上下文中的shardIndex和shardTotal设置成了-1,再被新触发的任务读取到的就都是-1了, 无法正确获取值

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