:db.model.job record holds event log, that can be accessed by MX
            this method adds a record and removes oldest one if necessary

def add_log_entry(self, entry):
        """ :db.model.job record holds event log, that can be accessed by MX
            this method adds a record and removes oldest one if necessary """
        event_log = self.job_record.event_log
        if len(event_log) > job.MAX_NUMBER_OF_EVENTS:
            del event_log[-1]
        event_log.insert(0, entry)