Explorar o código

HUE-3215 [editor] Live update also queries with available results

Enrico Berti %!s(int64=9) %!d(string=hai) anos
pai
achega
c3f2fc7b09

+ 2 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -1346,7 +1346,7 @@
     self.updateHistory = function () {
       if (!self.updateHistoryRunning) {
         var items = $.grep(self.history(), function (item) {
-          return item.status() == 'running' || item.status() == 'starting';
+          return item.status() == 'available' || item.status() == 'running' || item.status() == 'starting';
         });
 
         function updateHistoryCall(item) {
@@ -1368,6 +1368,7 @@
         }
 
         if (items.length > 0) {
+          self.updateHistoryRunning = true;
           updateHistoryCall(items.pop());
         }
       }