Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/celery/backends/__pycache__/redis.cpython-39.pyc
Ðазад
a t�hg � @ s� d Z ddlZddlmZ ddlmZ ddlmZmZm Z ddl mZ ddlm Z ddlmZ dd lmZmZ dd lmZ ddlmZ ddlmZ dd lmZmZmZ ddlmZmZ ddl m!Z!m"Z" ddl#m$Z$ ddl%m&Z& ddl'm(Z(m)Z) ddl*m+Z+ zddl,Z-ddl.m/Z/ W n e0�y, dZ-dZ/Y n0 zddl1Z-W n e0�yN Y n0 dZ2dZ3dZ4dZ5dZ6dZ7dZ8dZ9dZ:e$e;�Z<G dd � d e)�Z=G d!d"� d"e+e(�Z>e?e-d#d��r�G d$d%� d%e-j@jAe-jB�ZCG d&d'� d'e>�ZDdS )(zRedis result store backend.� N)�contextmanager)�partial)� CERT_NONE� CERT_OPTIONAL� CERT_REQUIRED)�unquote)�retry_over_time)�cached_property)� _parse_url�maybe_sanitize_url)�states)�task_join_will_block)�maybe_signature)�BackendStoreError� ChordError�ImproperlyConfigured)�GroupResult�allow_join_result)�_regen� dictfilter)� get_logger)�humanize_seconds� )�AsyncBackendMixin�BaseResultConsumer)�BaseKeyValueStoreBackend)�get_redis_error_classes)�RedisBackend�SentinelBackendzW You need to install the redis library in order to use the Redis result store backend. zp You need to install the redis library with support of sentinel in order to use the Redis result store backend. z� Setting ssl_cert_reqs=CERT_OPTIONAL when connecting to redis means that celery might not validate the identity of the redis broker when connecting. This leaves you vulnerable to man in the middle attacks. z� Setting ssl_cert_reqs=CERT_NONE when connecting to redis means that celery will not validate the identity of the redis broker when connecting. This leaves you vulnerable to man in the middle attacks. z� SSL connection parameters have been provided but the specified URL scheme is redis://. A Redis SSL connection URL should use the scheme rediss://. zv A rediss:// URL must have parameter ssl_cert_reqs and this must be set to CERT_REQUIRED, CERT_OPTIONAL, or CERT_NONE z+Connection to Redis lost: Retry (%s/%s) %s.z� Retry limit exceeded while trying to reconnect to the Celery redis result store backend. The Celery application must be restarted. c s� e Zd ZdZ� fdd�Z� fdd�Zdd� Zedd � �Zd d� Z � fdd �Z dd� Zdd� Zdd� Z ddd�Zdd� Zdd� Zdd� Z� ZS )�ResultConsumerNc sF t � j|i |�� | jj| _| jj| _| jj| _| jj | _ t� | _d S �N) �super�__init__�backendZget_key_for_task�_get_key_for_taskZ decode_result�_decode_result�ensure�_ensure�connection_errors�_connection_errors�set� subscribed_to��self�args�kwargs�� __class__� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/celery/backends/redis.pyr"