Skip to content
Snippets Groups Projects
Commit bffeecf5 authored by Jesper Fyhr Knudsen's avatar Jesper Fyhr Knudsen
Browse files

Remove jobs after finished in standalone mode

parent d3b30d8c
Branches
No related tags found
No related merge requests found
......@@ -62,6 +62,10 @@ public class OrchestratorImpl implements Orchestrator {
sync.addSynchronizationTask(new EnqueueJobs(leader, client));
sync.addSynchronizationTask(new Heartbeat(leader._AllocationHandler, client));
}
else
{
sync.addSynchronizationTask(new StandaloneUpdateJob(queue));
}
return leader;
}
......@@ -135,4 +139,18 @@ public class OrchestratorImpl implements Orchestrator {
public boolean getIsRunning(){
return _simpleServer.getIsRunning();
}
private static class StandaloneUpdateJob implements SynchronizationTask {
private ConcurrentJobQueue queue;
public StandaloneUpdateJob(ConcurrentJobQueue queue) {
this.queue = queue;
}
public void action() {
for (Job job:queue.popAll()) {
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment