Fix the bug caused by wrong check logic of Job Num and add the consideration of the limit  options