retry job fetching in loop instead of recursion