use getattr instead of \. to catch nonexisting num_bg_jobs attribute