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

This commit is contained in:
James Gowdy 2019-02-14 11:42:49 +00:00 committed by GitHub
parent cf32861d31
commit 8c16cb1619
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View file

@ -44,7 +44,7 @@ module.directive('mlPostSaveOptions', function (Private, i18n) {
$scope.apply = function () {
postSaveService.apply($scope.jobId, $scope.runInRealtime, $scope.createWatch, i18n)
.catch()
.catch(() => {})
.then(() => {
$scope.$applyAsync();
});

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(() => {
@ -63,7 +63,7 @@ class PostSaveService {
.then(() => {
if (createWatch) {
mlCreateWatchService.createNewWatch(jobId)
.catch()
.catch(() => {})
.then(() => {
resolve();
});

View file

@ -704,7 +704,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

@ -726,7 +726,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

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