If the job is stopped before starting inference on test data, we should skip inference entirely. Backport of #60116
This commit is contained in:
parent
ca25f6ae6f
commit
6b9a362ec2
|
@ -323,8 +323,8 @@ public class AnalyticsProcessManager {
|
|||
|
||||
private void runInference(ParentTaskAssigningClient parentTaskClient, DataFrameAnalyticsTask task, ProcessContext processContext,
|
||||
ExtractedFields extractedFields) {
|
||||
if (processContext.failureReason.get() != null) {
|
||||
// If there has been an error thus far let's not run inference at all
|
||||
if (task.isStopping() || processContext.failureReason.get() != null) {
|
||||
// If the task is stopping or there has been an error thus far let's not run inference at all
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue