Closed sgerbino closed 8 years ago
I created a utility function for looking up jobs by label, and committed it in 3283b77. Let's refactor this patch to use the utility function.
The first loop should prevent jobs from running that are already running. The second loop is to prevent loading the same job twice if 2 of the same job are in the pending LIST.
This patch shoud resolve issue #9.
The code change produces the following output: