fetch pending jobs