File tree 2 files changed +12
-0
lines changed
common/src/main/java/com/netflix/conductor/common/metadata/workflow
core/src/main/java/com/netflix/conductor/core/execution/mapper
2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,9 @@ public class SubWorkflowParams {
45
45
46
46
private IdempotencyStrategy idempotencyStrategy ;
47
47
48
+ //Priority of the sub workflow, not set inherits from the parent
49
+ private Integer priority ;
50
+
48
51
public String getIdempotencyKey () {
49
52
return idempotencyKey ;
50
53
}
@@ -61,6 +64,14 @@ public void setIdempotencyStrategy(IdempotencyStrategy idempotencyStrategy) {
61
64
this .idempotencyStrategy = idempotencyStrategy ;
62
65
}
63
66
67
+ public Integer getPriority () {
68
+ return priority ;
69
+ }
70
+
71
+ public void setPriority (Integer priority ) {
72
+ this .priority = priority ;
73
+ }
74
+
64
75
/**
65
76
* @return the name
66
77
*/
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ public List<TaskModel> getMappedTasks(TaskMapperContext taskMapperContext) {
83
83
subWorkflowTask .addInput ("workflowInput" , taskMapperContext .getTaskInput ());
84
84
subWorkflowTask .setStatus (TaskModel .Status .SCHEDULED );
85
85
subWorkflowTask .setCallbackAfterSeconds (workflowTask .getStartDelay ());
86
+ subWorkflowTask .setWorkflowPriority (subWorkflowParams .getPriority ());
86
87
LOGGER .debug ("SubWorkflowTask {} created to be Scheduled" , subWorkflowTask );
87
88
return List .of (subWorkflowTask );
88
89
}
You can’t perform that action at this time.
0 commit comments