Reduced agent job check frequency to 45 seconds.
Keep fetching jobs until the queue is empty (drain the queue).