moved jobs logic into polling