Browse Source

HPCC-26256 Report WU Action in WUQery for 7.12.x

In https://github.com/hpcc-systems/HPCC-Platform/pull/14660, we
have added a fix to HPCC-Platform 8.0.0 for reporting WU Action in
WsWorkunits.WUQuery. In this PR, the fix is back ported to 7.12.x.

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>
wangkx 3 years ago
parent
commit
326db46e5a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      esp/services/ws_workunits/ws_workunitsService.cpp

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

@@ -1992,6 +1992,8 @@ void doWUQueryWithSort(IEspContext &context, IEspWUQueryRequest & req, IEspWUQue
         // info.setSnapshot(cw->getSnapshot(s).str());
         info->setStateID(cw.getState());
         info->setState(cw.queryStateDesc());
+        info->setAction(cw.getAction());
+        info->setActionEx(cw.queryActionDesc());
         unsigned totalThorTimeMS = cw.getTotalThorTime();
         StringBuffer totalThorTimeStr;
         formatDuration(totalThorTimeStr, totalThorTimeMS);