Viewing File: /opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/__pycache__/rq.cpython-312.pyc
�
h0i� � �> � d dl Z d dlZd dlmZ d dlmZ d dlmZmZm Z d dl
mZ d dlm
Z
d dlmZmZmZmZmZ d dlmZ d d lmZ d d
lmZ d dlmZ d dlmZ d dl m!Z! e!rd dl m"Z"m#Z# d dl$m%Z%m&Z& d dlm'Z' d dlm(Z( G d� de � Z)d� Z*d� Z+y# e$ r ed
� �w xY w)� N)�OP)�continue_trace)�_check_minimum_version�DidNotEnable�Integration)�
ignore_logger)�TransactionSource)�capture_internal_exceptions�ensure_integration_enabled�event_from_exception�format_timestamp�
parse_version)�Queue)�JobTimeoutException)�VERSION)�Worker)� JobStatuszRQ not installed)�
TYPE_CHECKING)�Any�Callable)�Event�EventProcessor)�ExcInfo)�Jobc �* � e Zd ZdZde� �Zed� � Zy)�
RqIntegration�rqzauto.queue.c �j ���� t t � } t t | � t j
�t
t �� �fd�� }|t _ t j ��fd�}|t _ t j �t
t �� �fd�� }|t _ t d� y )Nc � �� t j � 5 }|j � |j t t j |� � � t |j j d� xs i t j dt j t j �� }t! � 5 |j"