Commit 8c724d1f authored by bao liang's avatar bao liang Committed by lgcareer
Browse files

donot submit task to queue if sub process (#1793)

parent 684cd77a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -972,6 +972,9 @@ public class ProcessDao {
    public Boolean submitTaskToQueue(TaskInstance taskInstance) {

        try{
            if(taskInstance.isSubProcess()){
                return true;
            }
            if(taskInstance.getState().typeIsFinished()){
                logger.info(String.format("submit to task queue, but task [%s] state [%s] is already  finished. ", taskInstance.getName(), taskInstance.getState().toString()));
                return true;