Skip to content
Snippets Groups Projects
Commit 466db4be authored by jce's avatar jce
Browse files

1- Added timestamp and job_ptr to step_record

2- changed a typedef for step_spec ot reflect changes in slurm_protocol_defs
parent 0d962a3e
No related branches found
No related tags found
No related merge requests found
......@@ -177,14 +177,16 @@ struct job_record {
};
struct step_record {
struct job_record* job_ptr; /* ptr to the job that owns the step */
uint16_t step_id; /* step number */
time_t start_time; /* step allocation time */
bitstr_t *node_bitmap; /* bitmap of nodes in allocated to job step */
#ifdef HAVE_LIBELAN3
qsw_jobinfo_t qsw_job; /* Elan3 switch context, opaque data structure */
#endif
};
typedef struct job_step_create_request_msg step_specs;
typedef struct job_step_specs step_specs;
extern List job_list; /* list of job_record entries */
......
......@@ -28,6 +28,7 @@
# include <config.h>
#endif
#include <time.h>
#include <assert.h>
#include <ctype.h>
#include <errno.h>
......@@ -56,7 +57,10 @@ create_step_record (struct job_record *job_ptr)
assert (job_ptr);
step_record_point = (struct step_record *) xmalloc (sizeof (struct step_record));
step_record_point->job_ptr = job_ptr;
step_record_point->step_id = (job_ptr->next_step_id)++;
step_record_point->start_time = time( NULL ) ;
if (list_append (job_ptr->step_list, step_record_point) == NULL)
fatal ("create_step_record: unable to allocate memory");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment