Skip to content
Snippets Groups Projects
Commit 4b9b3356 authored by Moe Jette's avatar Moe Jette
Browse files

Add batch_flag to job info dumped to user and printed.

parent 250a0212
No related branches found
No related tags found
No related merge requests found
...@@ -73,10 +73,12 @@ slurm_print_job_info ( FILE* out, job_info_t * job_ptr ) ...@@ -73,10 +73,12 @@ slurm_print_job_info ( FILE* out, job_info_t * job_ptr )
fprintf ( out, "JobId=%u UserId=%u Name=%s ", fprintf ( out, "JobId=%u UserId=%u Name=%s ",
job_ptr->job_id, job_ptr->user_id, job_ptr->name); job_ptr->job_id, job_ptr->user_id, job_ptr->name);
fprintf ( out, "JobState=%s TimeLimit=%u ", fprintf ( out, "JobState=%s TimeLimit=%u\n",
job_state_string(job_ptr->job_state), job_ptr->time_limit); job_state_string(job_ptr->job_state), job_ptr->time_limit);
fprintf ( out, "Priority=%u Partition=%s\n",
job_ptr->priority, job_ptr->partition); fprintf ( out, " Priority=%u Partition=%s BatchFlag=%u\n",
job_ptr->priority, job_ptr->partition, job_ptr->batch_flag);
make_time_str ((time_t *)&job_ptr->start_time, time_str); make_time_str ((time_t *)&job_ptr->start_time, time_str);
fprintf ( out, " StartTime=%s ", time_str); fprintf ( out, " StartTime=%s ", time_str);
make_time_str ((time_t *)&job_ptr->end_time, time_str); make_time_str ((time_t *)&job_ptr->end_time, time_str);
...@@ -103,6 +105,7 @@ slurm_print_job_info ( FILE* out, job_info_t * job_ptr ) ...@@ -103,6 +105,7 @@ slurm_print_job_info ( FILE* out, job_info_t * job_ptr )
fprintf ( out, "MinTmpDisk=%u\n", job_ptr->min_tmp_disk); fprintf ( out, "MinTmpDisk=%u\n", job_ptr->min_tmp_disk);
fprintf ( out, " Features=%s ReqNodeList=%s ", job_ptr->features, fprintf ( out, " Features=%s ReqNodeList=%s ", job_ptr->features,
job_ptr->req_nodes); job_ptr->req_nodes);
fprintf ( out, "ReqNodeListIndecies="); fprintf ( out, "ReqNodeListIndecies=");
for (j = 0; job_ptr->req_node_inx; j++) { for (j = 0; job_ptr->req_node_inx; j++) {
if (j > 0) if (j > 0)
......
...@@ -167,6 +167,7 @@ typedef struct job_descriptor { /* For submit, allocate, and update requests */ ...@@ -167,6 +167,7 @@ typedef struct job_descriptor { /* For submit, allocate, and update requests */
typedef struct job_info { typedef struct job_info {
uint32_t job_id; /* job ID */ uint32_t job_id; /* job ID */
char *name; /* name of the job */ char *name; /* name of the job */
uint16_t batch_flag; /* 1 if batch: queued job with script */
uint32_t user_id; /* user the job runs as */ uint32_t user_id; /* user the job runs as */
uint16_t job_state; /* state of the job, see enum job_states */ uint16_t job_state; /* state of the job, see enum job_states */
uint32_t time_limit; /* maximum run time in minutes or INFINITE */ uint32_t time_limit; /* maximum run time in minutes or INFINITE */
......
...@@ -1483,7 +1483,9 @@ _unpack_job_info_members(job_info_t * job, Buf buffer) ...@@ -1483,7 +1483,9 @@ _unpack_job_info_members(job_info_t * job, Buf buffer)
safe_unpack32(&job->job_id, buffer); safe_unpack32(&job->job_id, buffer);
safe_unpack32(&job->user_id, buffer); safe_unpack32(&job->user_id, buffer);
safe_unpack16(&job->job_state, buffer); safe_unpack16(&job->job_state, buffer);
safe_unpack16(&job->batch_flag, buffer);
safe_unpack32(&job->time_limit, buffer); safe_unpack32(&job->time_limit, buffer);
safe_unpack_time(&job->start_time, buffer); safe_unpack_time(&job->start_time, buffer);
......
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