batch_job_info.h
/*
Copyright (C) 2024 The University of Notre Dame
This software is distributed under the GNU General Public License.
See the file COPYING for details.
*/
#ifndef BATCH_JOB_INFO_H
#define BATCH_JOB_INFO_H
#include <time.h>
struct batch_job_info {
time_t submitted;
time_t started;
time_t finished;
time_t heartbeat;
int exited_normally;
int exit_code;
int exit_signal;
int disk_allocation_exhausted;
long log_pos;
};
struct batch_job_info *batch_job_info_create();
void batch_job_info_delete(struct batch_job_info *info);
#endif
batch_job_info
Describes a batch job when it has completed.
Definition batch_job_info.h:13
batch_job_info::exit_signal
int exit_signal
The signal by which the job was killed, if it exited abnormally.
Definition batch_job_info.h:20
batch_job_info::submitted
time_t submitted
Time the job was submitted to the system.
Definition batch_job_info.h:14
batch_job_info::disk_allocation_exhausted
int disk_allocation_exhausted
Non-zero if the job filled its loop device allocation to capacity, zero otherwise.
Definition batch_job_info.h:21
batch_job_info::finished
time_t finished
Time at which the job actually completed.
Definition batch_job_info.h:16
batch_job_info::log_pos
long log_pos
Last read position in the log file, for ftell and fseek.
Definition batch_job_info.h:22
batch_job_info::exited_normally
int exited_normally
Non-zero if the job ran to completion, zero otherwise.
Definition batch_job_info.h:18
batch_job_info::started
time_t started
Time the job actually began executing.
Definition batch_job_info.h:15
batch_job_info::heartbeat
time_t heartbeat
Time the job last wrote heartbeat.
Definition batch_job_info.h:17
batch_job_info::exit_code
int exit_code
The result code of the job, if it exited normally.
Definition batch_job_info.h:19