Przeglądaj źródła

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 lat temu
rodzic
commit
5500736222

+ 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)
     {