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

@cool-midway/task 有重大bug #151

Open
zhisenyang opened this issue Dec 4, 2023 · 0 comments
Open

@cool-midway/task 有重大bug #151

zhisenyang opened this issue Dec 4, 2023 · 0 comments

Comments

@zhisenyang
Copy link

zhisenyang commented Dec 4, 2023

场景:
1、设置个重复执行的任务,30秒执行一次,我这边实际业务是1小时一次。
2、具体任务执行时长设置60秒,实际业务时长1-60分钟都有。

出现的问题:
1、任务偶尔会假死,且不再执行下去,一直为active状态,怀疑线程无了。
2、如果任务在正常active时,重启应用偶尔会再次启动任务,偶尔又不会。
3、应用运行时间一长了,会出现多个active。

自制的查看任务执行状态
image

后面的解决办法,是切换为midway的bull,还带面板,完美。
1e28c794ec59ce7ac0a8022e821a4a6

代码也简单,都是bull,方法基本对齐了。
f91ebb9b1f7562f15cf1964fadacece

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