Skip to content

Commit

Permalink
HPCC-32780 Extend STD.System.Workunit.WorkunitMessages to return prio…
Browse files Browse the repository at this point in the history
…rity and cost

Signed-off-by: Shamser Ahmed <[email protected]>
  • Loading branch information
shamser committed Nov 22, 2024
1 parent 92149e3 commit fa8850d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/workunitservices/workunitservices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down Expand Up @@ -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());
}
Expand Down

0 comments on commit fa8850d

Please sign in to comment.