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

make backfill scheduler enforce licenses

parent 7b2e551b
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,7 @@
#include "src/common/xmalloc.h"
#include "src/common/xstring.h"
#include "src/slurmctld/job_scheduler.h"
#include "src/slurmctld/licenses.h"
#include "src/slurmctld/locks.h"
#include "src/slurmctld/node_scheduler.h"
#include "src/slurmctld/slurmctld.h"
......@@ -171,7 +172,7 @@ extern void *backfill_agent(void *args)
READ_LOCK, WRITE_LOCK, WRITE_LOCK, READ_LOCK };
while (!stop_backfill) {
sleep(1); /* don't run continuously */
sleep(2); /* don't run continuously */
now = time(NULL);
/* Avoid resource fragmentation if important */
......@@ -243,6 +244,9 @@ static void _attempt_backfill(void)
if ((part_ptr->root_only) && filter_root)
continue;
if (license_job_test(job_ptr) != SLURM_SUCCESS)
continue;
/* Determine minimum and maximum node counts */
min_nodes = MAX(job_ptr->details->min_nodes,
part_ptr->min_nodes);
......
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