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

perf: 执行引擎部分代码优化 #1616 #1627

Merged
merged 2 commits into from
Dec 15, 2022

Conversation

jsonwan
Copy link
Collaborator

@jsonwan jsonwan commented Dec 15, 2022

  1. 第三方源文件准备代码添加部分注释、删除无用代码;
  2. 支持按照任务实例ID进行任务驱逐;
  3. 修复发现的逻辑bug;
  4. 任务驱逐部分增加注释、重构部分代码。

第三方源文件准备代码添加部分注释、删除无用代码
支持按照任务实例ID进行任务驱逐;
修复发现的逻辑bug;
增加注释、重构部分代码。
if (RunStatusEnum.isFinishedStatus(stepInstance.getStatus())) {
long totalTime = TaskCostCalculator.calculate(stepInstance.getStartTime(), endTime,
stepInstance.getTotalTime());
if (!RunStatusEnum.isFinishedStatus(stepInstance.getStatus())) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里不是应该等步骤状态被设置为FIINSH STATE , 才进行后续的任务状态更新么?为啥这次改动中把条件反过来呀?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是驱逐任务后更新任务状态的场景,本来就是要将运行中的状态改为已丢弃状态,应该是之前的代码重构把这里重构错了,这次改了回来。

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@wangyu096 wangyu096 merged commit 82d59ac into TencentBlueKing:3.6.x Dec 15, 2022
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

Successfully merging this pull request may close these issues.

2 participants