Fixed #672. We now consider running jobs for the count of total jobs allowed. Closes #672 See merge request !253