code: def update_job(self, job_record, uow, new_state):
          
          original_job_state = job_record.state
          job_record.state = new_state
          job_record.related_unit_of_work = uow.db_id
          self.job_dao.update(job_record)
  
          msg = 'Updated Job {0} for {1}@{2}: state transfer {3} -> {4};' \
                .format(job_record.db_id, job_record.process_name, job_record.timeperiod, original_job_state, new_state)
          self._log_message(INFO, job_record.process_name, job_record.timeperiod, msg)
docs: method updates job record with a new unit_of_work and new state