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

Add logic to report GetEnvTimeout config parameter

parent 22271621
No related branches found
No related tags found
No related merge requests found
...@@ -937,6 +937,7 @@ typedef struct slurm_ctl_conf { ...@@ -937,6 +937,7 @@ typedef struct slurm_ctl_conf {
uint32_t next_job_id; /* next slurm generated job_id to assign */ uint32_t next_job_id; /* next slurm generated job_id to assign */
uint16_t fast_schedule; /* 1 to *not* check configurations by node uint16_t fast_schedule; /* 1 to *not* check configurations by node
* (only check configuration file, faster) */ * (only check configuration file, faster) */
uint16_t get_env_timeout; /* timeout for srun --get-user-env option */
uint16_t inactive_limit;/* seconds of inactivity before a uint16_t inactive_limit;/* seconds of inactivity before a
* inactive resource allocation is released */ * inactive resource allocation is released */
char *job_acct_gather_type; /* job accounting gather type */ char *job_acct_gather_type; /* job accounting gather type */
...@@ -957,7 +958,6 @@ typedef struct slurm_ctl_conf { ...@@ -957,7 +958,6 @@ typedef struct slurm_ctl_conf {
char *job_credential_private_key; /* path to private key */ char *job_credential_private_key; /* path to private key */
char *job_credential_public_certificate;/* path to public certificate*/ char *job_credential_public_certificate;/* path to public certificate*/
uint16_t job_file_append; /* if set, append to stdout/err file */ uint16_t job_file_append; /* if set, append to stdout/err file */
uint16_t get_env_timeout; /* secs allowed for srun --get-user-env */
uint16_t kill_wait; /* seconds between SIGXCPU to SIGKILL uint16_t kill_wait; /* seconds between SIGXCPU to SIGKILL
* on job termination */ * on job termination */
char *mail_prog; /* pathname of mail program */ char *mail_prog; /* pathname of mail program */
......
...@@ -147,7 +147,9 @@ void slurm_print_ctl_conf ( FILE* out, ...@@ -147,7 +147,9 @@ void slurm_print_ctl_conf ( FILE* out,
fprintf(out, "FastSchedule = %u\n", fprintf(out, "FastSchedule = %u\n",
slurm_ctl_conf_ptr->fast_schedule); slurm_ctl_conf_ptr->fast_schedule);
fprintf(out, "FirstJobId = %u\n", fprintf(out, "FirstJobId = %u\n",
slurm_ctl_conf_ptr->first_job_id); slurm_ctl_conf_ptr->first_job_id);
fprintf(out, "GetEnvTimeout = %u\n",
slurm_ctl_conf_ptr->get_env_timeout);
#ifdef HAVE_XCPU #ifdef HAVE_XCPU
fprintf(out, "HAVE_XCPU = %d\n", HAVE_XCPU); fprintf(out, "HAVE_XCPU = %d\n", HAVE_XCPU);
#endif #endif
......
...@@ -2215,6 +2215,8 @@ _pack_slurm_ctl_conf_msg(slurm_ctl_conf_info_msg_t * build_ptr, Buf buffer) ...@@ -2215,6 +2215,8 @@ _pack_slurm_ctl_conf_msg(slurm_ctl_conf_info_msg_t * build_ptr, Buf buffer)
pack16(build_ptr->fast_schedule, buffer); pack16(build_ptr->fast_schedule, buffer);
pack32(build_ptr->first_job_id, buffer); pack32(build_ptr->first_job_id, buffer);
pack16(build_ptr->get_env_timeout, buffer);
pack16(build_ptr->inactive_limit, buffer); pack16(build_ptr->inactive_limit, buffer);
pack16(build_ptr->job_acct_gather_freq, buffer); pack16(build_ptr->job_acct_gather_freq, buffer);
...@@ -2347,6 +2349,8 @@ _unpack_slurm_ctl_conf_msg(slurm_ctl_conf_info_msg_t ** ...@@ -2347,6 +2349,8 @@ _unpack_slurm_ctl_conf_msg(slurm_ctl_conf_info_msg_t **
safe_unpack16(&build_ptr->fast_schedule, buffer); safe_unpack16(&build_ptr->fast_schedule, buffer);
safe_unpack32(&build_ptr->first_job_id, buffer); safe_unpack32(&build_ptr->first_job_id, buffer);
safe_unpack16(&build_ptr->get_env_timeout, buffer);
safe_unpack16(&build_ptr->inactive_limit, buffer); safe_unpack16(&build_ptr->inactive_limit, buffer);
safe_unpack16(&build_ptr->job_acct_gather_freq, buffer); safe_unpack16(&build_ptr->job_acct_gather_freq, 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