mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
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,
|
private void runInference(ParentTaskAssigningClient parentTaskClient, DataFrameAnalyticsTask task, ProcessContext processContext,
|
||||||
ExtractedFields extractedFields) {
|
ExtractedFields extractedFields) {
|
||||||
if (processContext.failureReason.get() != null) {
|
if (task.isStopping() || processContext.failureReason.get() != null) {
|
||||||
// If there has been an error thus far let's not run inference at all
|
// If the task is stopping or there has been an error thus far let's not run inference at all
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user