class MasterTaskExecThread extends MasterBaseTaskExecThread {

    public void pauseTask() {
        taskInstance = processService.findTaskInstanceById(taskInstance.getId());
        if(taskInstance == null){
            return;
        }
        if(StringUtils.isBlank(taskInstance.getHost())){
            taskInstance.setState(ExecutionStatus.PAUSE);
            taskInstance.setEndTime(new Date());
            processService.updateTaskInstance(taskInstance);
        }
    }

    public  MasterTaskExecThread(TaskInstance taskInstance);

}