merge job rusage and pending reason support

This commit is contained in:
Rongsong Shen 2025-12-16 14:36:28 +08:00
parent 30824ae5ea
commit cb0c7fe9e7
82 changed files with 4280 additions and 2561 deletions

View file

@ -5,6 +5,7 @@
#include "cluster.h"
#include "objmgr.h"
#include "preason.h"
#include "utils.h"
#include "xce/cluster_def.h"
#include "xstring.h"
@ -296,6 +297,11 @@ void job_obj_killer(job_t* job)
FREEUP(job->job.run_usage);
}
if (job->job.pend_reasons != NULL) {
erase_job_preason(job->job.pend_reasons);
FREEUP(job->job.pend_reasons);
}
FREEUP(job->job.exit_info);
memset(obj, 0x0, sizeof(*obj));