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

New field added to job_info RPC: batch_sid.

parent 83940aba
No related branches found
No related tags found
No related merge requests found
......@@ -77,8 +77,9 @@ slurm_print_job_info ( FILE* out, job_info_t * job_ptr )
fprintf ( out, "JobState=%s TimeLimit=%u\n",
job_state_string(job_ptr->job_state), job_ptr->time_limit);
fprintf ( out, " Priority=%u Partition=%s BatchFlag=%u\n",
job_ptr->priority, job_ptr->partition, job_ptr->batch_flag);
fprintf ( out, " Priority=%u Partition=%s BatchFlag:Sid=%u:%u\n",
job_ptr->priority, job_ptr->partition,
job_ptr->batch_flag, job_ptr->batch_sid);
make_time_str ((time_t *)&job_ptr->start_time, time_str);
fprintf ( out, " StartTime=%s ", time_str);
......
......@@ -177,6 +177,7 @@ typedef struct job_info {
uint32_t job_id; /* job ID */
char *name; /* name of the job */
uint16_t batch_flag; /* 1 if batch: queued job with script */
uint32_t batch_sid; /* session id of running batch job */
uint32_t user_id; /* user the job runs as */
uint16_t job_state; /* state of the job, see enum job_states */
uint32_t time_limit; /* maximum run time in minutes or INFINITE */
......
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