Browse Source

update documents.

pull/2/head
lenboo 5 years ago
parent
commit
a259753bfd
  1. 14
      docs/zh_CN/后端部署文档.md
  2. 1
      escheduler-server/src/main/java/cn/escheduler/server/master/runner/MasterExecThread.java
  3. 19
      escheduler-server/src/main/java/cn/escheduler/server/quartz/ProcessScheduleJob.java
  4. 1
      escheduler-server/src/main/java/cn/escheduler/server/worker/runner/FetchTaskThread.java
  5. 2
      escheduler-server/src/main/java/cn/escheduler/server/worker/runner/TaskScheduleThread.java

14
docs/zh_CN/后端部署文档.md

@ -159,8 +159,18 @@ install.sh : 一键部署脚本
* 查看目录
正常编译完后,会在当前目录生成 target/escheduler-{version}/ , 然后参考
正常编译完后,会在当前目录生成 `target/escheduler-{version}/`
```查看目录
../
├── bin
├── conf
|—— install.sh
|—— lib
|—— logs
|—— script
|—— sql
```
### 2.3 系统常用启停服务(服务用途请具体参见《系统架构设计》小节)

1
escheduler-server/src/main/java/cn/escheduler/server/master/runner/MasterExecThread.java

@ -277,6 +277,7 @@ public class MasterExecThread implements Runnable {
ProcessDag processDag = generateFlowDag(processInstance.getProcessInstanceJson(),
startNodeNameList, recoveryNameList, processInstance.getTaskDependType());
if(processDag == null){
//TODO...
logger.error("processDag is null");
return;
}

19
escheduler-server/src/main/java/cn/escheduler/server/quartz/ProcessScheduleJob.java

@ -78,6 +78,7 @@ public class ProcessScheduleJob implements Job {
@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
//TODO...
Assert.notNull(processDao, "please call init() method first");
JobDataMap dataMap = context.getJobDetail().getJobDataMap();
@ -85,24 +86,10 @@ public class ProcessScheduleJob implements Job {
int projectId = dataMap.getInt(Constants.PROJECT_ID);
int scheduleId = dataMap.getInt(Constants.SCHEDULE_ID);
/**
* The scheduled time the trigger fired for. For instance the scheduled
* time may have been 10:00:00 but the actual fire time may have been
* 10:00:03 if the scheduler was too busy.
*
* @return Returns the scheduledFireTime.
* @see #getFireTime()
*/
Date scheduledFireTime = context.getScheduledFireTime();
/**
* The actual time the trigger fired. For instance the scheduled time may
* have been 10:00:00 but the actual fire time may have been 10:00:03 if
* the scheduler was too busy.
*
* @return Returns the fireTime.
* @see #getScheduledFireTime()
*/
Date fireTime = context.getFireTime();
logger.info("scheduled fire time :{}, fire time :{}, process id :{}", scheduledFireTime, fireTime, scheduleId);

1
escheduler-server/src/main/java/cn/escheduler/server/worker/runner/FetchTaskThread.java

@ -128,7 +128,6 @@ public class FetchTaskThread implements Runnable{
while (Stopper.isRunning()){
InterProcessMutex mutex = null;
try {
ThreadPoolExecutor poolExecutor = (ThreadPoolExecutor) workerExecService;
//check memory and cpu usage and threads

2
escheduler-server/src/main/java/cn/escheduler/server/worker/runner/TaskScheduleThread.java

@ -252,7 +252,7 @@ public class TaskScheduleThread implements Callable<Boolean> {
}
}
}catch (Exception e){
logger.error("task escheduler failure : " + e.getMessage(),e);
logger.error("task escheduler failure : ", e);
status = ExecutionStatus.FAILURE ;
logger.error(String.format("task process exception, process id : %s , task : %s",
taskInstance.getProcessInstanceId(),

Loading…
Cancel
Save