Browse Source

When running a task, the resource file is lost, which results in an error

pull/3/MERGE
BoYiZhang 4 years ago
parent
commit
fc565813ef
  1. 16
      dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/task/TaskParams.java

16
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/task/TaskParams.java

@ -17,6 +17,9 @@
package org.apache.dolphinscheduler.common.task; package org.apache.dolphinscheduler.common.task;
import org.apache.dolphinscheduler.common.process.ResourceInfo;
import java.util.List;
import java.util.Map; import java.util.Map;
public class TaskParams { public class TaskParams {
@ -24,6 +27,11 @@ public class TaskParams {
private String rawScript; private String rawScript;
private Map<String, String>[] localParams; private Map<String, String>[] localParams;
/**
* resource list
*/
private List<ResourceInfo> resourceList;
public void setRawScript(String rawScript) { public void setRawScript(String rawScript) {
this.rawScript = rawScript; this.rawScript = rawScript;
} }
@ -75,4 +83,12 @@ public class TaskParams {
public Map<String, String>[] getLocalParams() { public Map<String, String>[] getLocalParams() {
return localParams; return localParams;
} }
public List<ResourceInfo> getResourceList() {
return resourceList;
}
public void setResourceList(List<ResourceInfo> resourceList) {
this.resourceList = resourceList;
}
} }
Loading…
Cancel
Save