[ML] Stop immediately when job isn't opened

Original commit: elastic/x-pack-elasticsearch@cdb4cf47f5
This commit is contained in:
Martijn van Groningen 2017-04-10 10:54:40 +02:00
parent 0c2ef5608e
commit 0ae0f93994
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ public abstract class TransportJobTaskAction<OperationTask extends OpenJobAction
String message = "Cannot perform requested action because job [" + resolvedJobId
+ "] is not open";
listener.onFailure(ExceptionsHelper.conflictStatusException(message));
return;
} else {
executorNodes.add(jobTask.getExecutorNode());
}