Fixing condition in run_jobs to prevent infinite loop
Merge pull request #4993 from abhgupta/abhgupta-scheduler

Merged by openshift-bot