瀏覽代碼

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 6 年之前
父節點
當前提交
bf470e99eb
共有 1 個文件被更改,包括 5 次插入1 次删除
  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;
     unsigned int waitTimeMillies = 1000*60;
     while(!stopping)
     while(!stopping)
     {
     {
-        if (!detached)
+        if (!m_container)
+        {
+            DBGLOG("ECLWorkunit WUSchedule Thread is waiting for container to be set.");
+        }
+        else if (!detached)
         {
         {
             try
             try
             {
             {