Skip to content

Commit

Permalink
[ML] Fixing issue when selecting new job to continue in real time (el…
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic authored Feb 14, 2019
1 parent 76d8e18 commit fc4dc9e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class PostSaveService {
const datafeedId = mlJobService.getDatafeedId(jobId);

mlJobService.openJob(jobId)
.catch()
.catch(() => {})
.then(() => {
mlJobService.startDatafeed(datafeedId, jobId, 0, undefined)
.then(() => {
Expand All @@ -63,7 +63,7 @@ class PostSaveService {
.then(() => {
if (createWatch) {
mlCreateWatchService.createNewWatch(jobId)
.catch()
.catch(() => {})
.then(() => {
resolve();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,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();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,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();
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,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');
Expand Down

0 comments on commit fc4dc9e

Please sign in to comment.