mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-03 12:48:46 +08:00
[Bug-12963] [Master] Fix dependent task node null pointer exception (#12965)
* Fix that there are both manual and scheduled workflow instances in dependent nodes, and one of them will report a null pointer exception during execution.
This commit is contained in:
parent
31021730ec
commit
50779ea1e6
@ -205,8 +205,8 @@ public class DependentExecute {
|
||||
return lastManualProcess;
|
||||
}
|
||||
|
||||
return (lastManualProcess.getEndTime().after(lastSchedulerProcess.getEndTime())) ? lastManualProcess
|
||||
: lastSchedulerProcess;
|
||||
// In the time range, there are both manual and scheduled workflow instances, return the last workflow instance
|
||||
return lastManualProcess.getId() > lastSchedulerProcess.getId() ? lastManualProcess : lastSchedulerProcess;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user