def get_worker_class(worker_class=None):
RQ = getattr(settings, '<STR_LIT>', {})<EOL>if worker_class is None:<EOL><INDENT>worker_class = Worker<EOL>if '<STR_LIT>' in RQ:<EOL><INDENT>worker_class = RQ.get('<STR_LIT>')<EOL><DEDENT><DEDENT>if isinstance(worker_class, six.string_types):<EOL><INDENT>worker_class = import_attribute(worker_class)<EOL><DEDENT>return worker_class<EOL>
Return worker class from RQ settings, otherwise return Worker.
If `worker_class` is not None, it is used as an override (can be
python import path as string).