관리-도구
편집 파일: arq.cpython-311.pyc
� �܋fQ � � � d dl mZ d dlZd dlmZ d dlmZ d dlmZ d dl m Z d dlmZ d dl mZmZ d d lmZ d d lmZmZ d dlmZmZmZmZ d dlZd dlmZ d d lm Z d dlm!Z!m"Z"m#Z#m$Z$ n# e%$ r ed� � �w xY wer0d dl&m'Z'm(Z(m)Z)m*Z* d dlm+Z+m,Z,m-Z-m.Z. d dl/m0Z0 d dl1m2Z2 d dl3m4Z4 d dlm5Z5 e!e"e#fZ6 G d� de� � Z7d� Z8d� Z9d� Z:d� Z;d� Z<d� Z=d� Z>d� Z?dS ) � )�absolute_importN)�reraise)� TYPE_CHECKING)�Hub)�OP)�_should_send_default_pii)�DidNotEnable�Integration)� ignore_logger)�Transaction�TRANSACTION_SOURCE_TASK)�capture_internal_exceptions�event_from_exception�SENSITIVE_DATA_SUBSTITUTE� parse_version)�VERSION)�ArqRedis)�JobExecutionFailed�Retry�RetryJob�WorkerzArq is not installed)�Any�Dict�Optional�Union)�EventProcessor�Event�ExcInfo�Hint)�CronJob)�Job)�WorkerCoroutine)�Functionc �( � e Zd ZdZed� � � ZdS )�ArqIntegration�arqc � � t t t � � rt t � � } nt j d d� } n# t t f$ r d } Y nw xY w| �'t d� t � � � � �| dk rt d� � �t � � t � � t � � t d� � d S )N� zUnparsable arq version: {})r � zarq 0.23 or newer required.z arq.worker) � isinstance�ARQ_VERSION�strr �version� TypeError� ValueErrorr �format�patch_enqueue_job� patch_run_job�patch_create_workerr )r- s �l/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/sentry_sdk/integrations/arq.py� setup_oncezArqIntegration.setup_once, s� � � ��+�s�+�+� 2�'��4�4���%�-�b�q�b�1�����:�&� � � ��G�G�G� ���� �?��;�B�B�;�O�O�P�P�P��W����<�=�=�=��������������l�#�#�#�#�#s �AA �A�AN)�__name__� __module__�__qualname__� identifier�staticmethodr5 � � r4 r% r% ) s2 � � � � � ��J��$� $� �\�$� $� $r<