Skip to content

Commit

Permalink
[Bug][Api] Fix NPE when deleting a workflow instance (apache#15485) (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
CommandCV authored Jan 17, 2024
1 parent c7a11ce commit e1fcd4e
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,12 @@ public void deleteByWorkflowInstanceId(Integer workflowInstanceId) {
return;
}
for (TaskInstance taskInstance : needToDeleteTaskInstances) {
ILogService iLogService =
SingletonJdkDynamicRpcClientProxyFactory.getProxyClient(taskInstance.getHost(), ILogService.class);
iLogService.removeTaskInstanceLog(taskInstance.getLogPath());
if (StringUtils.isNotBlank(taskInstance.getLogPath())) {
ILogService iLogService =
SingletonJdkDynamicRpcClientProxyFactory.getProxyClient(taskInstance.getHost(),
ILogService.class);
iLogService.removeTaskInstanceLog(taskInstance.getLogPath());
}
}

dqExecuteResultDao.deleteByWorkflowInstanceId(workflowInstanceId);
Expand Down

0 comments on commit e1fcd4e

Please sign in to comment.