فهرست منبع

HUE-6599 [editor] Slow down fetch status after 45s

Romain Rigaux 8 سال پیش
والد
کامیت
0e2fe12
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

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

@@ -1462,7 +1462,7 @@ var EditorViewModel = (function() {
 
             if (self.status() == 'running' || self.status() == 'starting' || self.status() == 'waiting') {
               self.result.endTime(new Date());
-              var delay = self.result.executionTime() > 120000 ? 5000 : 1000; // 5s if more than 2min
+              var delay = self.result.executionTime() > 45000 ? 5000 : 1000; // 5s if more than 45s
               if (! notebook.unloaded()) { self.checkStatusTimeout = setTimeout(self.checkStatus, delay); };
             }
             else if (self.status() == 'available') {