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

Don't start saving state immediately on slurmctld startup. Wait for

specified time interval to pass (avoid saving initial configuration
to state save files).
parent ca3da241
No related branches found
No related tags found
No related merge requests found
......@@ -195,8 +195,7 @@ main (int argc, char *argv[])
shutdown_time = time (NULL);
/* send REQUEST_SHUTDOWN_IMMEDIATE RPC */
slurm_shutdown ();
/* ssl clean up
*/
/* ssl clean up */
slurm_destroy_ssl_key_ctx ( & sign_ctx ) ;
slurm_ssl_destroy ( ) ;
......@@ -325,13 +324,16 @@ void * service_connection ( void * arg )
void *
slurmctld_background ( void * no_data )
{
static time_t last_sched_time = (time_t) NULL;
static time_t last_checkpoint_time = (time_t) NULL;
static time_t last_timelimit_time = (time_t) NULL;
static time_t last_sched_time;
static time_t last_checkpoint_time;
static time_t last_timelimit_time;
time_t now;
/* Locks: Write job, write node, read partition */
slurmctld_lock_t job_write_lock = { NO_LOCK, WRITE_LOCK, WRITE_LOCK, READ_LOCK };
/* Let the dust settle before doing work */
last_sched_time = last_checkpoint_time = last_timelimit_time = time (NULL);
while (shutdown_time == 0) {
sleep (1);
......
......@@ -179,9 +179,9 @@ struct job_record {
};
struct step_record {
struct job_record* job_ptr; /* ptr to the job that owns the step */
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 */
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 */
......
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