|
17 | 17 | package com.webank.wedatasphere.dss.appconn.eventchecker.execution |
18 | 18 |
|
19 | 19 | import java.util.{Properties, UUID} |
20 | | - |
21 | 20 | import com.webank.wedatasphere.dss.appconn.eventchecker.entity.EventChecker |
22 | 21 | import com.webank.wedatasphere.dss.standard.app.development.listener.common._ |
23 | 22 | import com.webank.wedatasphere.dss.standard.app.development.listener.core.{Killable, LongTermRefExecutionOperation, Procedure} |
24 | 23 | import com.webank.wedatasphere.dss.standard.app.development.listener.ref.ExecutionResponseRef.ExecutionResponseRefBuilder |
25 | 24 | import com.webank.wedatasphere.dss.standard.app.development.listener.ref.{AsyncExecutionResponseRef, ExecutionResponseRef, RefExecutionRequestRef} |
26 | 25 | import org.apache.commons.io.IOUtils |
27 | 26 | import org.apache.linkis.common.log.LogUtils |
28 | | -import org.apache.linkis.common.utils.Utils |
| 27 | +import org.apache.linkis.common.utils.{Utils, VariableUtils} |
29 | 28 | import org.apache.linkis.storage.LineRecord |
30 | 29 |
|
31 | 30 |
|
@@ -77,6 +76,10 @@ class EventCheckerRefExecutionOperation |
77 | 76 | val InstanceConfig = this.service.getAppInstance.getConfig |
78 | 77 | val scalaParams: scala.collection.mutable.Map[String, Object] = requestRef.getExecutionRequestRefContext.getRuntimeMap |
79 | 78 | val properties = new Properties() |
| 79 | + val variableParams: scala.collection.mutable.Map[String, Object] = requestRef.getRefJobContent.get("variable").asInstanceOf[java.util.Map[String, Object]] |
| 80 | + if (variableParams.exists(x => x._1.equalsIgnoreCase(VariableUtils.RUN_DATE))) { |
| 81 | + properties.put(VariableUtils.RUN_DATE, variableParams.get(VariableUtils.RUN_DATE)) |
| 82 | + } |
80 | 83 | InstanceConfig.foreach { record => |
81 | 84 | if(null == record._2) { |
82 | 85 | properties.put(record._1, "")} |
|
0 commit comments