Commit dd60f8f1 authored by Maiterth, Matthias's avatar Maiterth, Matthias
Browse files

Updated BackfillType.None was not working as expected. Fixed when no Backfill is choosen.

parent 3147d0d3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -169,7 +169,9 @@ class Scheduler:
        # as the next job in line has the necessary resrouces after this time limit.

        # Find and return the first job that fits
        if self.bfpolicy == BackfillType.EASY:
        if self.bfpolicy == BackfillType.NONE:
            pass
        elif self.bfpolicy == BackfillType.EASY:
            queue[:] = sorted(queue, key=lambda job: job.submit_time)
            return self.return_first_fit(queue,time_limit)
        elif self.bfpolicy == BackfillType.FIRSTFIT: