Optimization, only update job attr when needed