update the job stats after run