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