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

fix: 轻量化部署下定时任务偶现启动不生效 #3151

Closed
jsonwan opened this issue Jul 30, 2024 · 0 comments
Closed

fix: 轻量化部署下定时任务偶现启动不生效 #3151

jsonwan opened this issue Jul 30, 2024 · 0 comments
Assignees
Labels
done 已上线到正式环境并验收通过 kind/bug 程序故障Bug,漏洞

Comments

@jsonwan
Copy link
Collaborator

jsonwan commented Jul 30, 2024

Version / Branch / tag
master

出了什么问题?(What Happened?)
轻量化部署下定时任务偶现启动不生效

如何复现?(How to reproduce?)
轻量化部署下创建定时任务后启动,发现有时启动后不生效,任务并不执行

预期结果(What you expect?)
任务正常调度执行

分析:
事务可见性问题,事务未提交,MQ消息已被处理导致。

@jsonwan jsonwan added kind/bug 程序故障Bug,漏洞 backlog 需求初始状态,等待产品进行评估 labels Jul 30, 2024
@jsonwan jsonwan self-assigned this Jul 30, 2024
jsonwan added a commit to jsonwan/bk-job that referenced this issue Jul 30, 2024
1.去除部分非必要的事务;
2.重构批量操作的事务实现,限制事务仅作用于DB操作。
wangyu096 added a commit that referenced this issue Jul 31, 2024
fix: 轻量化部署下定时任务偶现启动不生效 #3151
@jsonwan jsonwan added the todo 进入开发排期的状态,纳入了最近的迭代 label Aug 1, 2024
@jsonwan jsonwan added todo 进入开发排期的状态,纳入了最近的迭代 and removed todo 进入开发排期的状态,纳入了最近的迭代 labels Aug 16, 2024
@bkjob-bot bkjob-bot added for gray 可以在灰度环境/预发布环境验收 todo 进入开发排期的状态,纳入了最近的迭代 doing 已经接受处理,正在开发实施 done 已上线到正式环境并验收通过 and removed backlog 需求初始状态,等待产品进行评估 todo 进入开发排期的状态,纳入了最近的迭代 doing 已经接受处理,正在开发实施 for gray 可以在灰度环境/预发布环境验收 labels Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done 已上线到正式环境并验收通过 kind/bug 程序故障Bug,漏洞
Projects
None yet
Development

No branches or pull requests

2 participants