فهرست منبع

HUE-5719 [notebook] Recheck status when received status "waiting" (#475)

* Added new check for the status waiting 

New response from Livy-server that the job can be in a waiting state, see commit LIVY-213 https://github.com/cloudera/livy/commit/b4642b193956b287bb1c1b32bafe4c5a15e71eac

* Minor formatting change to previous commit
robrotheram 8 سال پیش
والد
کامیت
b619c52
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

@@ -1282,7 +1282,7 @@ var EditorViewModel = (function() {
           if (data.status == 0) {
             self.status(data.query_status.status);
 
-            if (self.status() == 'running' || self.status() == 'starting') {
+            if (self.status() == 'running' || self.status() == 'starting' || self.status() == 'waiting') {
               self.result.endTime(new Date());
               if (! notebook.unloaded()) { self.checkStatusTimeout = setTimeout(self.checkStatus, 1000); };
             }