improve jobProgress logic using local class named 'WorkInfo'