Skip to content

[Feature-7572][Server & ui] Add Backward Dependent Execution#7579

Closed
shangeyao wants to merge 2 commits into
apache:devfrom
shangeyao:feature-7572
Closed

[Feature-7572][Server & ui] Add Backward Dependent Execution#7579
shangeyao wants to merge 2 commits into
apache:devfrom
shangeyao:feature-7572

Conversation

@shangeyao
Copy link
Copy Markdown
Contributor

@shangeyao shangeyao commented Dec 23, 2021

The downstream dependency is queried according to the dependent node, and the execution is triggered automatically.
#7572

@shangeyao
Copy link
Copy Markdown
Contributor Author

At present, only "ALL" is considered.

@sonarqubecloud
Copy link
Copy Markdown

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

from t_ds_process_task_relation
WHERE pre_task_code = #{taskCode}
<if test="taskCode != 0">
or post_task_code = #{taskCode}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it's better to split this sql instread of or query, which will dismatch index.

List<TaskDefinition> definitionList = taskDefinitionLogMapper.queryDefinitionListByTaskType(TaskType.DEPENDENT.getDesc());
for (TaskDefinition taskDefinition : definitionList) {
String dependence = taskDefinition.getDependence();
ArrayNode dependTaskList = (ArrayNode) new ObjectMapper().readTree(dependence).get("dependTaskList");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's better to use constant "dependTaskList"

String dependence = taskDefinition.getDependence();
ArrayNode dependTaskList = (ArrayNode) new ObjectMapper().readTree(dependence).get("dependTaskList");
for (JsonNode dependTask : dependTaskList) {
ArrayNode dependItemList = (ArrayNode) dependTask.get("dependItemList");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's better to use constant

@songjianet
Copy link
Copy Markdown
Member

Thank you for your contribution, but it is currently in the switching period between the new and the old UI, and this function will not be implemented in the old UI.

@songjianet songjianet closed this Mar 1, 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.

3 participants