Explorar o código

HPCC-22091 Check ESP service container before running scheduled WU

ESP service container is needed when scheduled ECL WU is running in
WsWorkunits service. When an ESP is started, the WsWorkunits is
loaded before the container is set. the WUSchedule thread inside
the WsWorkunits service should check whether the container is set
before running a scheduled WU.

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
wangkx %!s(int64=6) %!d(string=hai) anos
pai
achega
bf470e99eb
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      esp/services/ws_workunits/ws_workunitsHelpers.cpp

+ 5 - 1
esp/services/ws_workunits/ws_workunitsHelpers.cpp

@@ -3014,7 +3014,11 @@ int WUSchedule::run()
     unsigned int waitTimeMillies = 1000*60;
     while(!stopping)
     {
-        if (!detached)
+        if (!m_container)
+        {
+            DBGLOG("ECLWorkunit WUSchedule Thread is waiting for container to be set.");
+        }
+        else if (!detached)
         {
             try
             {