Stop searching for circular job dependencies after first completed job

Once the first complete job is found, there is no need to check for
its dependencies as they will not stop another job from starting