Skip to content

Commit 65d2b8f

Browse files
authored
[Bug] fix task params pass (#11053)
1 parent 878cbbc commit 65d2b8f

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/expand/CuringGlobalParams.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717

1818
package org.apache.dolphinscheduler.service.expand;
1919

20-
import lombok.NonNull;
20+
import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.PARAMETER_TASK_EXECUTE_PATH;
21+
import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.PARAMETER_TASK_INSTANCE_ID;
22+
2123
import org.apache.dolphinscheduler.common.Constants;
2224
import org.apache.dolphinscheduler.common.enums.CommandType;
2325
import org.apache.dolphinscheduler.common.utils.DateUtils;
@@ -31,8 +33,6 @@
3133
import org.apache.dolphinscheduler.plugin.task.api.parser.ParamUtils;
3234
import org.apache.dolphinscheduler.plugin.task.api.utils.MapUtils;
3335
import org.apache.dolphinscheduler.spi.utils.StringUtils;
34-
import org.springframework.beans.factory.annotation.Autowired;
35-
import org.springframework.stereotype.Component;
3636

3737
import java.util.Date;
3838
import java.util.HashMap;
@@ -42,8 +42,10 @@
4242
import java.util.Set;
4343
import java.util.stream.Collectors;
4444

45-
import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.PARAMETER_TASK_EXECUTE_PATH;
46-
import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.PARAMETER_TASK_INSTANCE_ID;
45+
import org.springframework.beans.factory.annotation.Autowired;
46+
import org.springframework.stereotype.Component;
47+
48+
import lombok.NonNull;
4749

4850
@Component
4951
public class CuringGlobalParams implements CuringParamsService {
@@ -139,6 +141,7 @@ public Map<String, Property> paramParsingPreparation(@NonNull TaskInstance taskI
139141
Map<String, Property> localParams = parameters.getInputLocalParametersMap();
140142

141143
//stream pass params
144+
parameters.setVarPool(taskInstance.getVarPool());
142145
Map<String, Property> varParams = parameters.getVarPoolMap();
143146

144147
if (globalParams.isEmpty() && localParams.isEmpty() && varParams.isEmpty()) {

0 commit comments

Comments
 (0)