[ML] Fixing issue when selecting new job to continue in real time (#30948)

This commit is contained in:
James Gowdy 2019-02-13 23:29:59 +00:00 committed by GitHub
parent 442b00b1fc
commit 5fd9aa225d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -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();
});

View file

@ -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();
});

View file

@ -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();
});

View file

@ -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');