Browse Source

HUE-1176 [jb] Add ignore action of coordinator actions

Romain Rigaux 8 years ago
parent
commit
3dfefc3
1 changed files with 9 additions and 0 deletions
  1. 9 0
      apps/jobbrowser/src/jobbrowser/templates/job_browser.mako

+ 9 - 0
apps/jobbrowser/src/jobbrowser/templates/job_browser.mako

@@ -1500,6 +1500,15 @@ ${ commonheader("Job Browser", "jobbrowser", user, request) | n,unicode }
             $('#id_actions').find('option').remove();
             $(frag).appendTo('#id_actions');
           });
+        } else if (action == 'ignore') {
+          $.post('/oozie/manage_oozie_jobs/' + vm.job().id() + '/ignore', {
+            actions: $.map(vm.job().coordinatorActions().selectedJobs(), function(wf) {
+              return wf.properties.number();
+            }).join(' ')
+          }, function(response) {
+            vm.job().apiStatus('RUNNING');
+            vm.job().updateJob();
+          });
         } else {
           self._control(
             $.map(self.selectedJobs(), function(job) {