adjusted maxWait for job completion