detect if pending jobs