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
This commit is contained in:
parent
31f9fbf335
commit
ed04835c95
|
|
@ -194,7 +194,11 @@ public class ProcessInstanceService extends BaseDAGService {
|
|||
project.getId(), processDefineId, searchVal, statusArray, host, start, end);
|
||||
|
||||
for(ProcessInstance processInstance:processInstanceList.getRecords()){
|
||||
processInstance.setDuration(DateUtils.differSec(processInstance.getStartTime(),processInstance.getEndTime()));
|
||||
if (StringUtils.isNotEmpty(startDate)
|
||||
&& StringUtils.isNotEmpty(endDate)){
|
||||
processInstance.setDuration(DateUtils.differSec(processInstance.getStartTime(),processInstance.getEndTime()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Set<String> exclusionSet = new HashSet<String>(){{
|
||||
|
|
@ -205,7 +209,7 @@ public class ProcessInstanceService extends BaseDAGService {
|
|||
}};
|
||||
|
||||
PageInfo pageInfo = new PageInfo<ProcessInstance>(pageNo, pageSize);
|
||||
pageInfo.setTotalCount((int)processInstanceList.getTotal());
|
||||
pageInfo.setTotalCount((int) processInstanceList.getTotal());
|
||||
pageInfo.setLists(CollectionUtils.getListByExclusion(processInstanceList.getRecords(), exclusionSet));
|
||||
result.put(Constants.DATA_LIST, pageInfo);
|
||||
putMsg(result, Status.SUCCESS);
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ public class ZKMasterClient extends AbstractZKClient {
|
|||
*/
|
||||
public void initDao(){
|
||||
this.alertDao = DaoFactory.getDaoInstance(AlertDao.class);
|
||||
this.processDao = DaoFactory.getDaoInstance(ProcessDao.class);
|
||||
// this.processDao = DaoFactory.getDaoInstance(ProcessDao.class);
|
||||
}
|
||||
/**
|
||||
* get alert dao
|
||||
|
|
|
|||
Loading…
Reference in New Issue