From fa8850d018cffa3be4c0f737c75701c70ab6a53d Mon Sep 17 00:00:00 2001 From: Shamser Ahmed Date: Fri, 22 Nov 2024 16:16:32 +0000 Subject: [PATCH] HPCC-32780 Extend STD.System.Workunit.WorkunitMessages to return priority and cost Signed-off-by: Shamser Ahmed --- plugins/workunitservices/workunitservices.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/workunitservices/workunitservices.cpp b/plugins/workunitservices/workunitservices.cpp index 6411b6d6d15..cdac07977b6 100644 --- a/plugins/workunitservices/workunitservices.cpp +++ b/plugins/workunitservices/workunitservices.cpp @@ -90,6 +90,8 @@ static const char * EclDefinition = " unsigned4 col;" " string16 source;" " string20 time;" + " unsigned4 priority;" + " real8 cost;" " string message{maxlength(1024)};" " end;\n" "export WsFileRead := record " @@ -599,6 +601,8 @@ WORKUNITSERVICES_API void wsWorkunitMessages( ICodeContext *ctx, size32_t & __le fixedAppend(mb, 16, s.str(), s.length()); e.getTimeStamp(s); fixedAppend(mb, 20, s.str(), s.length()); + mb.append((unsigned) e.getPriority()); + mb.append((double) e.getCost()); e.getExceptionMessage(s); varAppendMax(mb, 1024, s.str(), s.length()); }