Browse Source

HPCC-8666 Submit workunit should reschedule even if workflow not reset

Regression was causing resubmitted workunits not to reschedule events.

Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>
Anthony Fishbeck 12 năm trước cách đây
mục cha
commit
5500736222
1 tập tin đã thay đổi với 2 bổ sung4 xóa
  1. 2 4
      esp/services/ws_workunits/ws_workunitsService.cpp

+ 2 - 4
esp/services/ws_workunits/ws_workunitsService.cpp

@@ -214,11 +214,9 @@ void submitWsWorkunit(IEspContext& context, IConstWorkUnit* cw, const char* clus
     }
 
     if (resetWorkflow)
-    {
         wu->resetWorkflow();
-        if (!compile)
-            wu->schedule();
-    }
+    if (!compile)
+        wu->schedule();
 
     if (resetVariables)
     {