mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[ML] Fixing issue when selecting new job to continue in real time (#30948)
This commit is contained in:
parent
442b00b1fc
commit
5fd9aa225d
4 changed files with 5 additions and 5 deletions
|
@ -37,7 +37,7 @@ class PostSaveService {
|
|||
const datafeedId = mlJobService.getDatafeedId(jobId);
|
||||
|
||||
mlJobService.openJob(jobId)
|
||||
.catch()
|
||||
.catch(() => {})
|
||||
.then(() => {
|
||||
mlJobService.startDatafeed(datafeedId, jobId, 0, undefined)
|
||||
.then(() => {
|
||||
|
@ -60,7 +60,7 @@ class PostSaveService {
|
|||
.then(() => {
|
||||
if (createWatch) {
|
||||
mlCreateWatchService.createNewWatch(jobId)
|
||||
.catch()
|
||||
.catch(() => {})
|
||||
.then(() => {
|
||||
resolve();
|
||||
});
|
||||
|
|
|
@ -641,7 +641,7 @@ module
|
|||
// setting the status to STOPPING disables the stop button
|
||||
$scope.jobState = JOB_STATE.STOPPING;
|
||||
mlMultiMetricJobService.stopDatafeed($scope.formConfig)
|
||||
.catch()
|
||||
.catch(() => {})
|
||||
.then(() => {
|
||||
$scope.$applyAsync();
|
||||
});
|
||||
|
|
|
@ -666,7 +666,7 @@ module
|
|||
// setting the status to STOPPING disables the stop button
|
||||
$scope.jobState = JOB_STATE.STOPPING;
|
||||
mlPopulationJobService.stopDatafeed($scope.formConfig)
|
||||
.catch()
|
||||
.catch(() => {})
|
||||
.then(() => {
|
||||
$scope.$applyAsync();
|
||||
});
|
||||
|
|
|
@ -514,7 +514,7 @@ module
|
|||
// any jitters in the chart caused by previously loading the model mid job.
|
||||
$scope.chartData.model = [];
|
||||
reloadModelChart()
|
||||
.catch()
|
||||
.catch(() => {})
|
||||
.then(() => {
|
||||
$scope.chartData.percentComplete = 100;
|
||||
$scope.$broadcast('render-results');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue