diff --git a/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java b/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java index 9c5e65160f94..12fed3ab56fd 100644 --- a/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java +++ b/dolphinscheduler-master/src/main/java/org/apache/dolphinscheduler/server/master/runner/WorkflowExecuteRunnable.java @@ -1897,7 +1897,7 @@ public void submitStandByTask() throws StateEventHandleException { TaskInstance task; while ((task = readyToSubmitTaskQueue.peek()) != null) { // stop tasks which is retrying if forced success happens - if (task.taskCanRetry()) { + if (task.getId() != null && task.taskCanRetry()) { TaskInstance retryTask = taskInstanceDao.queryById(task.getId()); if (retryTask != null && retryTask.getState().isForceSuccess()) { task.setState(retryTask.getState());