code: def job_error_message(self, job, queue, to_be_requeued, exception, trace=None):
          
          return '[%s|%s|%s] error: %s [%s]' % (queue._cached_name,
                               job.pk.get(),
                               job._cached_identifier,
                               str(exception),
                               'requeued' if to_be_requeued else 'NOT requeued')
docs: Return the message to log when a job raised an error