Skip to content
Snippets Groups Projects
Commit c5beffc1 authored by Ceronore's avatar Ceronore
Browse files

First Iteration done

parent 2a908677
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ KillWait=30
Waittime=0
#
# SCHEDULING
SchedulerType=sched/builtin
SchedulerType=sched/planbased
#SchedulerAuth=
#SchedulerPort=
#SchedulerRootFilter=
......
......@@ -9,23 +9,12 @@
#include "slurm/slurm.h"
#include "slurm/slurm_errno.h"
#include <stdio.h>
bool psps_active = true;
extern void* planbased_thread(void *args)
{
FILE *fp = fopen("/home/log", "w");
while (psps_active)
while (1)
{
sleep(1);
if (!psps_active)
{
break;
}
fprintf(fp, "Check!");
sched_verbose("Planbased Scheduler plugin successfully initialized...");
}
return NULL;
}
......
......@@ -41,13 +41,13 @@ int init(void)
void fini(void)
{
verbose( "Planbased Scheduler plugin shutting down" );
slurm_mutex_lock( &thread_flag_mutex );
/*slurm_mutex_lock( &thread_flag_mutex );
if ( thesis_thread ) {
psps_thread_stop();
pthread_join(thesis_thread, NULL);
thesis_thread = 0;
}
slurm_mutex_unlock( &thread_flag_mutex );
slurm_mutex_unlock( &thread_flag_mutex );*/
}
int slurm_sched_p_reconfig(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment