
    ]j                     0    d dl mZ d dlmZ d dlmZ ddZy)    )Job)import_attribute)settingsNc                     t        t        di       }| |j                  dt              } t	        | t
              rt        |       } | S )z
    Return job class from RQ settings, otherwise return Job.
    If `job_class` is not None, it is used as an override (can be
    python import path as string).
    RQ	JOB_CLASS)getattrr   getr   
isinstancestrr   )	job_classr   s     8/root/env/lib/python3.12/site-packages/django_rq/jobs.pyget_job_classr      sB     
4	$BFF;,	)S!$Y/	    )N)rq.jobr   rq.utilsr   django.confr   r    r   r   <module>r      s     %  r   