query batch job lock instead sep