[ML] Stop immediately when job isn't opened
Original commit: elastic/x-pack-elasticsearch@cdb4cf47f5
This commit is contained in:
parent
0c2ef5608e
commit
0ae0f93994
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue