Explorar o código

HUE-1643 [pig] Progress does not update

Fixed logs refresh trigger that failed on slow submissions
Enrico Berti %!s(int64=12) %!d(string=hai) anos
pai
achega
8e0583d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/pig/static/js/pig.ko.js

+ 1 - 1
apps/pig/static/js/pig.ko.js

@@ -509,7 +509,6 @@ var PigViewModel = function (props) {
     self.currentScript(script);
     $(document).trigger("showLogs");
     $(document).trigger("running");
-    $(document).trigger("startLogsRefresh");
     $("#submitModal").modal("hide");
     $.post(self.RUN_URL,
         {
@@ -528,6 +527,7 @@ var PigViewModel = function (props) {
           }
           script.isRunning(true);
           script.watchUrl(data.watchUrl);
+          $(document).trigger("startLogsRefresh");
           $(document).trigger("refreshDashboard");
           self.updateScripts();
         }, "json").fail( function(xhr, textStatus, errorThrown) {