Skip to content

Commit 43a0bd5

Browse files
committed
Merge branch 'dev-1.21.0' into dev-1.21.0-hadoop3
2 parents 179574a + 4fe1ef6 commit 43a0bd5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • dss-orchestrator/orchestrators/dss-workflow/dss-flow-execution-server/src/main/scala/com/webank/wedatasphere/dss/flow/execution/entrance/resolver

dss-orchestrator/orchestrators/dss-workflow/dss-flow-execution-server/src/main/scala/com/webank/wedatasphere/dss/flow/execution/entrance/resolver/FlowDependencyResolverImpl.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ class FlowDependencyResolverImpl extends FlowDependencyResolver with Logging {
4545
.orNull
4646

4747
val isSelectedExecute = ExecuteStrategyEnum.IS_SELECTED_EXECUTE.getValue.equalsIgnoreCase(executeStrategy)
48+
val isReExecute = ExecuteStrategyEnum.IS_RE_EXECUTE.getValue.equalsIgnoreCase(executeStrategy)
49+
val isPartialExecute = isSelectedExecute || isReExecute
4850
def incomingEdges(node: WorkflowNode) = workflowEdges.filter(_.getTarget == node.getId)
4951

5052
def isAllParentDependencyCompleted(parents: util.List[String]): Boolean = {
@@ -61,7 +63,7 @@ class FlowDependencyResolverImpl extends FlowDependencyResolver with Logging {
6163
}
6264

6365
def shouldSkipByBranch(node: WorkflowNode): Boolean = {
64-
if (isSelectedExecute) {
66+
if (isPartialExecute) {
6567
false
6668
} else {
6769
incomingEdges(node).exists { edge =>
@@ -78,11 +80,11 @@ class FlowDependencyResolverImpl extends FlowDependencyResolver with Logging {
7880

7981
def shouldSkip(node: WorkflowNode): Boolean = {
8082
shouldSkipByBranch(node) ||
81-
(!isSelectedExecute && areAllParentsSkipped(node))
83+
(!isPartialExecute && areAllParentsSkipped(node))
8284
}
8385

8486
def isBranchRouteMatched(node: WorkflowNode): Boolean = {
85-
if (isSelectedExecute) {
87+
if (isPartialExecute) {
8688
true
8789
} else {
8890
incomingEdges(node).forall { edge =>

0 commit comments

Comments
 (0)