Skip to content

Commit

Permalink
HPCC-30989 Fix jobId log column on thormanager
Browse files Browse the repository at this point in the history
Ensure jobId is updated when processing next job in a lingering
Thor setup.

Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed Dec 8, 2023
1 parent bc9616b commit 7377af5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions thorlcr/master/thgraphmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,10 @@ void thorMain(ILogMsgHandler *logHandler, const char *wuid, const char *graphNam
{
if (!streq(currentWuid, wuid))
{
queryLogMsgManager()->removeJobId(thorJob.queryJobID());
LogMsgJobId thorJobId = queryLogMsgManager()->addJobId(wuid);
thorJob.setJobID(thorJobId);
setDefaultJobId(thorJobId);
// perhaps slightly overkill, but avoid checking/locking wuid to add pod info.
// if this instance has already done so.
auto it = publishedPodWuids.find(wuid.str());
Expand Down

0 comments on commit 7377af5

Please sign in to comment.