Browse Source

running through the big process error modify (#962)

* add ConnectionFactoryTest and ConnectionFactory read datasource from appliction.yml

* .escheduler_env.sh to dolphinscheduler_env.sh

* dao yml assembly to conf directory

* table name modify

* entity title table  name modify

* logback log name modify

* running through the big process

* running through the big process error modify
pull/2/head
qiaozhanwei 5 years ago committed by lgcareer
parent
commit
ed04835c95
  1. 4
      dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ProcessInstanceService.java
  2. 2
      dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/zk/ZKMasterClient.java

4
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ProcessInstanceService.java

@ -194,9 +194,13 @@ public class ProcessInstanceService extends BaseDAGService {
project.getId(), processDefineId, searchVal, statusArray, host, start, end); project.getId(), processDefineId, searchVal, statusArray, host, start, end);
for(ProcessInstance processInstance:processInstanceList.getRecords()){ for(ProcessInstance processInstance:processInstanceList.getRecords()){
if (StringUtils.isNotEmpty(startDate)
&& StringUtils.isNotEmpty(endDate)){
processInstance.setDuration(DateUtils.differSec(processInstance.getStartTime(),processInstance.getEndTime())); processInstance.setDuration(DateUtils.differSec(processInstance.getStartTime(),processInstance.getEndTime()));
} }
}
Set<String> exclusionSet = new HashSet<String>(){{ Set<String> exclusionSet = new HashSet<String>(){{
add(Constants.CLASS); add(Constants.CLASS);
add("locations"); add("locations");

2
dolphinscheduler-server/src/main/java/org/apache/dolphinscheduler/server/zk/ZKMasterClient.java

@ -141,7 +141,7 @@ public class ZKMasterClient extends AbstractZKClient {
*/ */
public void initDao(){ public void initDao(){
this.alertDao = DaoFactory.getDaoInstance(AlertDao.class); this.alertDao = DaoFactory.getDaoInstance(AlertDao.class);
this.processDao = DaoFactory.getDaoInstance(ProcessDao.class); // this.processDao = DaoFactory.getDaoInstance(ProcessDao.class);
} }
/** /**
* get alert dao * get alert dao

Loading…
Cancel
Save