Skip to content

Commit

Permalink
Server state going to "Scheduling" in Failover setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Suresh Thelkar committed Jun 8, 2018
1 parent 3a1775c commit 149c642
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/server/pbsd_main.c
Expand Up @@ -1452,11 +1452,6 @@ main(int argc, char **argv)
/* in case secondary didn't remove the file */
/* also tells the secondary to go idle */
(void)unlink(path_secondaryact);
/*
* Make the scheduler (re)-read the configuration
* and fairshare usage.
*/
(void)contact_sched(SCH_CONFIGURE, NULL, pbs_scheduler_addr, pbs_scheduler_port);

} else {
/* we believe we are a secondary server */
Expand Down Expand Up @@ -2008,6 +2003,13 @@ main(int argc, char **argv)
}
process_hooks(periodic_req, hook_msg, sizeof(hook_msg), pbs_python_set_interrupt);

/*
* Make the scheduler (re)-read the configuration
* and fairshare usage.
*/
(void)contact_sched(SCH_CONFIGURE, NULL, pbs_scheduler_addr, pbs_scheduler_port);


/*
* main loop of server
* stays in this loop until server's state is either
Expand Down

0 comments on commit 149c642

Please sign in to comment.