merge job rusage and pending reason support
This commit is contained in:
parent
30824ae5ea
commit
cb0c7fe9e7
82 changed files with 4280 additions and 2561 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef _XCECD_CGROUPS_H_
|
||||
#define _XCECD_CGROUPS_H_
|
||||
|
||||
#include "xcecd_utils.h"
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
|
@ -93,4 +94,13 @@ int get_systemd_job_exit_code(const char* unit_name);
|
|||
*/
|
||||
char* get_systemd_job_status_text(const char* unit_name);
|
||||
|
||||
/**
|
||||
* @brief Collect resource usage statistics for a systemd job.
|
||||
* @param job_id The ID of the job.
|
||||
* @return A pointer to an xce_job_rusages_t struct, or NULL on failure.
|
||||
* The caller is responsible for freeing the returned struct
|
||||
* using free_xce_job_rusages().
|
||||
*/
|
||||
xce_job_rusages_t* collect_job_rusages(uint64_t job_id);
|
||||
|
||||
#endif // _XCECD_CGROUPS_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue