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

任务大量重复执行的 问题 #3614

Closed
yc-8418 opened this issue Jan 7, 2025 · 9 comments
Closed

任务大量重复执行的 问题 #3614

yc-8418 opened this issue Jan 7, 2025 · 9 comments

Comments

@yc-8418
Copy link

yc-8418 commented Jan 7, 2025

image
image
任务设置了固定速度设置7200
image
过期策略立即执行一次,jiegu结果每个任务夸张的几分钟执行几百次

@xuxueli
Copy link
Owner

xuxueli commented Jan 7, 2025

问题无法复现,需要进一步提供复现条件。包括部署版本,任务完整配置,调度中心问题期间日志,辛苦提供下。

@yc-8418
Copy link
Author

yc-8418 commented Jan 8, 2025

版本是最新版2.5.0-SNAPSHOT;
任务完整配置如下:数据库字段依次
537888 19 描述 2025-01-03 07:43:22 2025-01-03 07:43:22 创建人 FIX_RATE 39600 FIRE_ONCE_NOW FIRST collectTaskHandler 1534605408640782337 SERIAL_EXECUTION 0 0 BEAN 2025-01-03 07:43:22 1 0 0
image
image

@yc-8418
Copy link
Author

yc-8418 commented Jan 8, 2025

一共是有14万多条定时任务,单体部署,执行器也是单个

@yc-8418
Copy link
Author

yc-8418 commented Jan 8, 2025

一共才十几万条数据,设置的固定速度都是5-15小时。
下边这个报表就是启动了累计几个小时的情况
image

@yc-8418
Copy link
Author

yc-8418 commented Jan 8, 2025

当数据量过大时trigger_next_time trigger_last_time这两个字段不会更新,总是0

@yc-8418
Copy link
Author

yc-8418 commented Jan 8, 2025

由于任务量太大导致添加进任务执行线程报错,后续循环更新trigger_next_time trigger_last_time字段的代码未执行到。导致每次扫表都重新大量执行,我临时加了以下代码解决
image

@yc-8418
Copy link
Author

yc-8418 commented Jan 9, 2025

提交了合并申请#3617

@xuxueli
Copy link
Owner

xuxueli commented Jan 11, 2025

感谢反馈,master分支已提交优化代码,将随 2.5.0 分支发布。

@xuxueli xuxueli closed this as completed Jan 11, 2025
@yangdingshan
Copy link

这个问题最后怎么修改的?

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

3 participants