Răsfoiți Sursa

HUE-2263 [oozie] Enable rerun coordinator actions when coordinator is running

Fix bundle rerun button too.
Skip coordinator action status.
Romain Rigaux 11 ani în urmă
părinte
comite
2da7c74

+ 5 - 3
apps/oozie/src/oozie/templates/dashboard/list_oozie_bundle.mako

@@ -461,12 +461,14 @@ ${ layout.menubar(section='bundles', dashboard=True) }
 
         if (data.id && (data.status == "KILLED" || data.status == "SUCCEEDED" ||  data.status == "DONEWITHERROR" || data.status == "FAILED")) {
           $("#kill-btn").hide();
-          if (data.status != "KILLED" ) {
-            $("#rerun-btn").show();
-          }
         } else {
           $("#kill-btn").show();
+        }
+
+        if (data.id && (data.status == "KILLED" || data.status == "FAILED" ||  data.status == "PREP" || data.status == "PREPPAUSED" || data.status == "PREPSUSPENDED")) {
           $("#rerun-btn").hide();
+        } else {
+          $("#rerun-btn").show();
         }
 
         if (data.id && (data.status == "RUNNING" || data.status == "RUNNINGWITHERROR")){

+ 5 - 0
apps/oozie/src/oozie/templates/dashboard/list_oozie_coordinator.mako

@@ -581,7 +581,12 @@ ${ layout.menubar(section='coordinators', dashboard=True) }
 
         if (data.id && data.status != "RUNNING" && data.status != "SUSPENDED" && data.status != "KILLED" && data.status != "FAILED"){
           $("#kill-btn").hide();
+        }
+
+        if (data.id && data.status != "KILLED" && data.status != "FAILED"){
           $("#rerun-btn").show();
+        } else {
+          $("#rerun-btn").hide();
         }
 
         if (data.id && (data.status == "RUNNING" || data.status == "RUNNINGWITHERROR")){