فهرست منبع

HPCC-8984 WU With target of "compile" is not marked as completed

Requires an additional call to WUInfo

Fixes HPCC-8984

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>
Gordon Smith 12 سال پیش
والد
کامیت
01b98218de
2فایلهای تغییر یافته به همراه11 افزوده شده و 3 حذف شده
  1. 5 3
      esp/files/scripts/ESPUtil.js
  2. 6 0
      esp/files/scripts/ESPWorkunit.js

+ 5 - 3
esp/files/scripts/ESPUtil.js

@@ -79,16 +79,18 @@ define([
                 this.stopMonitor();
                 return;
             } else {
-                if (this._timerTickCount < 5 && this._timerTickCount % 1 === 0) {
+                if (this._timerTickCount === 1) {
+                    this.refresh(true);
+                } else if (this._timerTickCount < 5 && this._timerTickCount % 1 === 0) {
                     this.refresh();
                 } else if (this._timerTickCount < 30 && this._timerTickCount % 5 === 0) {
                     this.refresh();
                 } else if (this._timerTickCount < 60 && this._timerTickCount % 10 === 0) {
                     this.refresh();
                 } else if (this._timerTickCount < 120 && this._timerTickCount % 30 === 0) {
-                    this.refresh();
+                    this.refresh(true);
                 } else if (this._timerTickCount % 60 === 0) {
-                    this.refresh();
+                    this.refresh(true);
                 }
             }
 

+ 6 - 0
esp/files/scripts/ESPWorkunit.js

@@ -122,6 +122,12 @@ define([
             var actionEx = lang.exists("ActionEx", this) ? this.ActionEx : null;
             this.set("hasCompleted", WsWorkunits.isComplete(this.StateID, actionEx));
         },
+        _ActionExSetter: function (ActionEx) {
+            if (this.StateID) {
+                this.ActionEx = ActionEx;
+                this.set("hasCompleted", WsWorkunits.isComplete(this.StateID, this.ActionEx));
+            }
+        },
         _VariablesSetter: function (Variables) {
             var variables = [];
             for (var i = 0; i < Variables.ECLResult.length; ++i) {