code: def get_job_class(klass_str):
      
      mod_name, klass_name = klass_str.rsplit('.', 1)
      try:
          mod = importlib.import_module(mod_name)
      except ImportError as e:
          logger.error("Error importing job module %s: '%s'", mod_name, e)
          return
      try:
          klass = getattr(mod, klass_name)
      except AttributeError:
          logger.error("Module '%s' does not define a '%s' class", mod_name, klass_name)
          return
      return klass
docs: Return the job class